Esempio n. 1
0
        public void UnitsNetInformationDeserializeFromJSON(UnitsNetInformationTestData inTestData)
        {
            if (Fixture == null)
            {
                TestOutput.WriteLine("Fixture is null");
            }
            if (Fixture.Serializer == null)
            {
                TestOutput.WriteLine("Fixture.Serializer is null");
            }
            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);
        }
Esempio n. 2
0
 public void UnitsNetInformationSerializeToJSON(UnitsNetInformationTestData inTestData)
 {
     Fixture.Serializer.Serialize(inTestData.ObjTestData).Should().Be(inTestData.SerializedTestData);
 }