Skip to content

Commit 5f30a3e

Browse files
committed
added failing tests
1 parent 53d17ca commit 5f30a3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Linq2GraphQL.Tests/QueryInterfaceTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public async Task Interface_NoSubclass()
2525

2626
Assert.IsType<Spider>(spider);
2727
Assert.IsType<Pig>(pig);
28+
2829
}
2930

3031
[Fact]
@@ -46,5 +47,9 @@ public async Task Interface_QuerySubClass()
4647

4748
Assert.IsType<Spider>(spider);
4849
Assert.IsType<Pig>(pig);
50+
51+
var spiderA = spider as Spider;
52+
53+
Assert.Equal(11, spiderA!.Speed);
4954
}
5055
}

0 commit comments

Comments
 (0)