Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void ParsingWithANullEncodingShouldThrowAnArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => Hl7Field.Parse("1", null));
 }