public void TestSerializationWithEmptyPath() { var path = new List <string>(); QuantityInfo x1 = new QuantityInfo(path, QuantityType.Parameter); QuantityInfo x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualMcQuantityInfo(x1, x2); }
public void TestSerialization() { var path = new List <string>(new string[] { "aa", "bb" }); QuantityInfo x1 = new QuantityInfo(path, QuantityType.Parameter); var mapper = new StringEnumerableAttributeMapper(); bool ismatch = mapper.IsMatch(typeof(List <string>)); ismatch = mapper.IsMatch(typeof(IList <string>)); QuantityInfo x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualMcQuantityInfo(x1, x2); }