Skip to content

Commit 2ea2bed

Browse files
committed
Fixed Edge Tests
1 parent 4c00c2e commit 2ea2bed

File tree

1 file changed

+13
-2
lines changed
  • src/HotChocolate/Core/test/Types.CursorPagination.Tests

1 file changed

+13
-2
lines changed

src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,22 @@ public void CreateEdge_ArgumentsArePassedCorrectly(
2727
}
2828

2929
[Fact]
30-
public void CreateEdge_CursorIsNull_ArgumentNullException()
30+
public void CreateEdge_CursorIsNull_ArgumentNullException_1()
3131
{
3232
// arrange
3333
// act
34-
void Action() => new Edge<string>("abc", null!);
34+
void Action() => new Edge<string>("abc", default(string)!);
35+
36+
// assert
37+
Assert.Throws<ArgumentNullException>(Action);
38+
}
39+
40+
[Fact]
41+
public void CreateEdge_CursorIsNull_ArgumentNullException_2()
42+
{
43+
// arrange
44+
// act
45+
void Action() => new Edge<string>("abc", default(Func<string, string>)!);
3546

3647
// assert
3748
Assert.Throws<ArgumentNullException>(Action);

0 commit comments

Comments
 (0)