示例#1
0
        public void TempAndFanArrayDeserializeFromJSON(TempAndFanArrayTestData inTestData)
        {
            var tempAndFanArray = Fixture.Serializer.Deserialize <TempAndFan[]>(inTestData.SerializedTempAndFanArray);

            tempAndFanArray.Should().BeOfType(typeof(TempAndFan));
            tempAndFanArray.Should().BeEquivalentTo(inTestData.TempAndFanArray);
        }
示例#2
0
        public void TempAndFanArraySerializeToJSON(TempAndFanArrayTestData inTestData)
        {
            var serializedTempAndFanArray = Fixture.Serializer.Serialize(inTestData.TempAndFanArray);

            serializedTempAndFanArray.Should().Be(inTestData.SerializedTempAndFanArray);
        }