public void ConvertingAnElementToAString() { var element = new EdiElement(); element.Repetitions.Add(new EdiRepetition("1234")); element.Repetitions.Add(new EdiRepetition("5678")); Assert.AreEqual("1234^5678", element.ToString()); }
public void ConvertingAnElementToAStringWithSpecificSeparators() { var element = new EdiElement(); element.Repetitions.Add(new EdiRepetition("1234")); element.Repetitions.Add(new EdiRepetition("5678")); var options = new EdiOptions {RepetitionSeparator = '^'}; Assert.AreEqual("1234^5678", element.ToString(options)); }
public void ConvertingAnElementToAStringWithSpecificSeparators() { var element = new EdiElement(); element.Repetitions.Add(new EdiRepetition("1234")); element.Repetitions.Add(new EdiRepetition("5678")); var options = new EdiOptions { RepetitionSeparator = '^' }; Assert.AreEqual("1234^5678", element.ToString(options)); }