public void ShouldReturnEmptyRepetitionByDefault() { //Arrange var fieldString = @"This\.br\is\.br\A Test~MoreText~SomeMoreText"; //Act var field = Hl7Field.Parse(fieldString); var repetition = field[4].ToString(); //Assert Assert.Equal("", repetition); }
public void ShouldReturnSecondRepetition() { //Arrange var fieldString = @"This\.br\is\.br\A Test~MoreText~SomeMoreText"; //Act var field = Hl7Field.Parse(fieldString); var repetition = field[2].ToString(); //Assert Assert.Equal("MoreText", repetition); }
public void ParsingWithANullEncodingShouldThrowAnArgumentNullException() { Assert.Throws <ArgumentNullException>(() => Hl7Field.Parse("1", null)); }