コード例 #1
0
        public void Int_Serialization_ShouldBeExpectedJson(int value, string expectedJson)
        {
            var intSvo = new IntSVO(value);

            var json = JsonConvert.SerializeObject(intSvo);

            json.Should().Be(expectedJson);
        }
コード例 #2
0
        public void IntSerialization(int value, string expectedJson)
        {
            // Arrange
            var intSvo = new IntSVO(value);

            // Act
            var json = JsonConvert.SerializeObject(intSvo);

            // Assert
            json.Should().Be(expectedJson);
        }