示例#1
0
            public void Parse_Normal_CorrectCount()
            {
                string data = "001AAA002BBB";

                var wrappers = CompositeWrapper.Parse(data, WrapperMap);
                Assert.AreEqual(2, wrappers.Count);
            }
示例#2
0
 public void Parse_TooLongString_Exception()
 {
     string data = "001" + Guid.NewGuid().ToString();
     CompositeWrapper.Parse(data, WrapperMap);
 }
示例#3
0
 public void Parse_TooShortString_Exception()
 {
     string data = "001";
     CompositeWrapper.Parse(data, WrapperMap);
 }
示例#4
0
 public void Parse_RandomCode_Exception()
 {
     string data = Guid.NewGuid().ToString();
     var wrappers = CompositeWrapper.Parse(data, new Dictionary<string, Type>());
     Assert.IsEmpty(wrappers);
 }