Пример #1
0
        public void TestSerializationWithEmptyPath()
        {
            var          path = new List <string>();
            QuantityInfo x1   = new QuantityInfo(path, QuantityType.Parameter);
            QuantityInfo x2   = SerializeAndDeserialize(x1);

            AssertForSpecs.AreEqualMcQuantityInfo(x1, x2);
        }
Пример #2
0
        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);
        }