Ejemplo n.º 1
0
 public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new FtsSegment();
         hl7Segment.FromDelimitedString("FTA|^~&|3|4|5|6");
     });
 }
Ejemplo n.º 2
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new FtsSegment
            {
                FileBatchCount     = 1,
                FileTrailerComment = "2"
            };

            ISegment actual = new FtsSegment();

            actual.FromDelimitedString("FTS|1|2");

            expected.Should().BeEquivalentTo(actual);
        }