-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcd9dbd
commit 6126b3f
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
test/Hussy.Net.Tests/Primitives/Number/Byte/EquatableTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |