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 47b4abf commit d1b8d22Copy full SHA for d1b8d22
tests/GraphQL.Client.Serializer.Tests/BaseSerializerTest.cs
@@ -1,3 +1,4 @@
1
+using System;
2
using System.IO;
3
using System.Text;
4
using System.Threading;
@@ -118,5 +119,26 @@ public async void CanDoSerializationWithPredefinedTypes()
118
119
120
Assert.Equal(message, response.Data.AddMessage.Content);
121
}
122
+
123
124
+ public class WithNullable
125
+ {
126
+ public int? NullableInt { get; set; }
127
+ }
128
129
+ [Fact]
130
+ public void CanSerializeNullableInt()
131
132
+ Action action = () => Serializer.SerializeToString(new GraphQLRequest
133
134
+ Query = "{}",
135
+ Variables = new WithNullable
136
137
+ NullableInt = 2
138
139
+ });
140
141
+ action.Should().NotThrow();
142
143
144
0 commit comments