Skip to content

Commit 32c3d8c

Browse files
committed
Update test to reflect change in union case inheritance
Union cases are no longer direct inheritors of their union tags, since a type can be part of multiple different union tags which cannot be easily represent in C# (without using arbitrarily unique type names). type: refactor scope: tests
1 parent bf74361 commit 32c3d8c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ShopifySharp.Tests/Services/Graph/GraphServiceTests.SendAsync.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,8 @@ bool withVariables
105105
o.lineItems?.nodes
106106
.Should().NotBeNullOrEmpty()
107107
.And.AllSatisfy(li =>
108-
li.quantity
109-
.Should().BeGreaterThanOrEqualTo(0)))
110-
.And.AllSatisfy(o =>
111-
o.Should().BeAssignableTo<CommentEventEmbed>()
112-
.Which.Should().NotBeNull());
108+
li?.quantity
109+
.Should().BeGreaterThanOrEqualTo(0)));
113110
}
114111

115112
[Fact(DisplayName = "Deprecated SendAsync<TResult>(string graphQuery) should throw when result contains user errors")]

0 commit comments

Comments
 (0)