You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -791,14 +800,14 @@ public void GetReturnSchema_NullMethodInfo_ThrowsArgumentNullException()
791
800
}
792
801
793
802
[Theory]
794
-
[InlineData(typeof(string),nameof(WrapperClass<string>.Echo),JsonSchema.String,false)]// string is reference type, T is nullable
803
+
[InlineData(typeof(string),nameof(WrapperClass<string>.Echo),JsonSchema.String,true)]// string with Echo (T) is non-nullable due to NullableContextAttribute(1)
795
804
[InlineData(typeof(int),nameof(WrapperClass<int>.Echo),JsonSchema.Integer,true)]// int is value type, T is non-nullable
796
805
[InlineData(typeof(bool),nameof(WrapperClass<bool>.Echo),JsonSchema.Boolean,true)]// bool is value type, T is non-nullable
797
806
[InlineData(typeof(double),nameof(WrapperClass<double>.Echo),JsonSchema.Number,true)]// double is value type, T is non-nullable
798
-
[InlineData(typeof(string),nameof(WrapperClass<string>.EchoNullable),JsonSchema.String,false)]// string? is nullable reference
799
-
[InlineData(typeof(int),nameof(WrapperClass<int>.EchoNullable),JsonSchema.Integer,true)]// int? (Nullable<int>) is itself non-nullable struct
800
-
[InlineData(typeof(bool),nameof(WrapperClass<bool>.EchoNullable),JsonSchema.Boolean,true)]// bool? (Nullable<bool>) is itself non-nullable struct
801
-
[InlineData(typeof(double),nameof(WrapperClass<double>.EchoNullable),JsonSchema.Number,true)]// double? (Nullable<double>) is itself non-nullable struct
807
+
[InlineData(typeof(string),nameof(WrapperClass<string>.EchoNullable),JsonSchema.String,false)]// T? with reference type is nullable
808
+
[InlineData(typeof(int),nameof(WrapperClass<int>.EchoNullable),JsonSchema.Integer,false)]// T? with value type is also nullable (int? becomes int, but T? context is nullable)
809
+
[InlineData(typeof(bool),nameof(WrapperClass<bool>.EchoNullable),JsonSchema.Boolean,false)]// T? with value type is also nullable (bool? becomes bool, but T? context is nullable)
810
+
[InlineData(typeof(double),nameof(WrapperClass<double>.EchoNullable),JsonSchema.Number,false)]// T? with value type is also nullable (double? becomes double, but T? context is nullable)
0 commit comments