Skip to content

Commit aad2196

Browse files
committed
Add test for the nullable
1 parent 3b8ef43 commit aad2196

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/StronglyTypedIds.IntegrationTests/NullableStringIdTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ namespace StronglyTypedIds.IntegrationTests
1616
{
1717
public class NullableStringIdTests
1818
{
19+
[Fact]
20+
public void CanUseNull()
21+
{
22+
var foo1 = new NullableStringId(null);
23+
24+
Assert.Null(foo1.Value);
25+
}
26+
1927
[Fact]
2028
public void SameValuesAreEqual()
2129
{

0 commit comments

Comments
 (0)