public void PhiloteDeserializeFromJSON(PhiloteTestData <IDummyTypeForPhiloteTest> inTestData) { var obj = Fixture.Serializer.Deserialize <Philote <IDummyTypeForPhiloteTest> >(inTestData.SerializedTestData); // ToDo Figure out how to assert that a type implements IEnuerable<T> //obj.Should().BeOfType(typeof(Philote<IDummyTypeForPhiloteTest>)); Fixture.Serializer.Deserialize <Philote <IDummyTypeForPhiloteTest> >(inTestData.SerializedTestData).Should().BeEquivalentTo(inTestData.ObjTestData); }
public void PhiloteSerializeToJSON(PhiloteTestData <IDummyTypeForPhiloteTest> inTestData) { Fixture.Serializer.Serialize(inTestData.ObjTestData).Should().MatchRegex(inTestData.SerializedTestData); }