Skip to content

Commit c2ee1c9

Browse files
authored
Merge pull request #24 from IvanMurzak/refactoring/minor-test-update
Simplify test for Task nullable custom type schema
2 parents 94ad953 + 68ea39f commit c2ee1c9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ReflectorNet.Tests/SchemaTests/ReturnSchemaTests.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,16 +254,11 @@ public void GetReturnSchema_TaskNullablePrimitive_UnwrapsWithoutRequired(string
254254
AssertAllRefsDefined(schema!);
255255
}
256256

257-
[Theory]
258-
#if NET5_0_OR_GREATER
259-
[InlineData(false)]
260-
#else
261-
[InlineData(true)]
262-
#endif
263-
public void GetReturnSchema_TaskNullableCustomType_UnwrapsToCustomTypeSchemaWithoutRequired(bool shouldBeRequired)
257+
[Fact]
258+
public void GetReturnSchema_TaskNullableCustomType_UnwrapsToCustomTypeSchemaWithoutRequired()
264259
{
265260
var schema = GetReturnSchemaForMethod(nameof(TaskNullableCustomTypeMethod));
266-
AssertCustomTypeReturnSchema(schema!, new[] { "Name", "Value" }, shouldBeRequired: shouldBeRequired);
261+
AssertCustomTypeReturnSchema(schema!, new[] { "Name", "Value" }, shouldBeRequired: false);
267262
AssertAllRefsDefined(schema!);
268263
}
269264

0 commit comments

Comments
 (0)