예제 #1
0
        public void GraphDataStructuresDeserializeFromJSON(SerializationTestData inTestData)
        {
            var obj = Fixture.Serializer.Deserialize <UnitsNet.Information>(inTestData.SerializedTestData);

            obj.Should().BeOfType(typeof(UnitsNet.Information));
            Fixture.Serializer.Deserialize <UnitsNet.Information>(inTestData.SerializedTestData).Should().BeEquivalentTo(inTestData.ObjTestData);
        }
예제 #2
0
 public void GraphDataStructuresSerializeToJSON(SerializationTestData inTestData)
 {
     Fixture.Serializer.Serialize(inTestData.ObjTestData).Should().Be(inTestData.SerializedTestData);
 }