-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move ObjectExtensionTests to seperate file
- Loading branch information
1 parent
06b55ad
commit 876dedd
Showing
2 changed files
with
25 additions
and
21 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,24 @@ | ||
| ||
namespace ExtensionTests; | ||
|
||
using Calebs.Extensions; | ||
|
||
public class ObjectExtensionTests | ||
{ | ||
[Fact] | ||
public void Nullable_Objects_Should_Return_Empty_String() | ||
{ | ||
ExampleModel m = null; | ||
var result = m.ToSafeString(); | ||
result.IsNullOrEmpty().Should().BeTrue(); | ||
} | ||
|
||
[Fact] | ||
public void Int_Should_Return_String_Value() | ||
{ | ||
int five = 5; | ||
var result = five.ToSafeString(); | ||
result.Should().Be("5"); | ||
} | ||
} | ||
|
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