Skip to content

Commit

Permalink
Changing unit test that was marked as Theory with a single test case …
Browse files Browse the repository at this point in the history
…to a Fact
  • Loading branch information
Dunnymeister committed Jun 29, 2021
1 parent cee9d0f commit 97357eb
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -26,16 +26,17 @@ public void CreateFromJson_SimpleType(string json, Type expectedType, object exp
Assert.Equal(expectedValue, actualValue);
}

[Theory]
[InlineData("null", typeof(OpenApiNull), null)]
public void CreateFromJson_NullType(string json, Type expectedType, object expectedValue)
[Fact]
public void CreateFromJson_NullType()
{
var openApiAnyObject = OpenApiAnyFactory.CreateFromJson(json);
var expectedType = typeof(OpenApiNull);

var openApiAnyObject = OpenApiAnyFactory.CreateFromJson("null");
Assert.NotNull(openApiAnyObject);
Assert.Equal(expectedType, openApiAnyObject.GetType());
Assert.Equal(AnyType.Null, openApiAnyObject.AnyType);
var valueProperty = expectedType.GetProperty("Value");
Assert.Equal(expectedValue, valueProperty);
Assert.Null(valueProperty);
}

[Theory]
Expand Down

0 comments on commit 97357eb

Please sign in to comment.