We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c00c2e commit 2ea2bedCopy full SHA for 2ea2bed
src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs
@@ -27,11 +27,22 @@ public void CreateEdge_ArgumentsArePassedCorrectly(
27
}
28
29
[Fact]
30
- public void CreateEdge_CursorIsNull_ArgumentNullException()
+ public void CreateEdge_CursorIsNull_ArgumentNullException_1()
31
{
32
// arrange
33
// act
34
- void Action() => new Edge<string>("abc", null!);
+ 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>)!);
46
47
// assert
48
Assert.Throws<ArgumentNullException>(Action);
0 commit comments