Skip to content

Commit

Permalink
Tested byte equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Apr 13, 2024
1 parent dcd9dbd commit 6126b3f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Hussy.Net.Tests/Hussy.Net.Tests.csproj.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=primitives_005Cnumber/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=primitives_005Cnumber_005Cbyte/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
23 changes: 23 additions & 0 deletions test/Hussy.Net.Tests/Primitives/Number/Byte/EquatableTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace Hussy.Net.Tests.Primitives;

public sealed class NumberTests
{
[Fact]
public void EqualsByte_Equal_ReturnsTrue()
{
const byte testValue = 5;
Number sample = testValue;
Assert.True(sample.Equals(testValue));
}

[Fact]
public void EqualsByte_NotEqual_ReturnsFalse()
{
const byte testValue = 3;
Number sample = testValue;
Assert.Equal(testValue, sample);

const byte comparisonValue = 5;
Assert.NotEqual(comparisonValue, sample);
}
}

0 comments on commit 6126b3f

Please sign in to comment.