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