public void Int_Serialization_ShouldBeExpectedJson(int value, string expectedJson) { var intSvo = new IntSVO(value); var json = JsonConvert.SerializeObject(intSvo); json.Should().Be(expectedJson); }
public void IntSerialization(int value, string expectedJson) { // Arrange var intSvo = new IntSVO(value); // Act var json = JsonConvert.SerializeObject(intSvo); // Assert json.Should().Be(expectedJson); }