Exemple #1
0
 public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         ISegment hl7Segment = new NckSegment();
         hl7Segment.FromDelimitedString("NCA|^~&|3|4|5|6");
     });
 }
Exemple #2
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            ISegment expected = new NckSegment
            {
                SystemDateTime = new DateTime(2020, 1, 1, 0, 0, 1)
            };

            ISegment actual = new NckSegment();

            actual.FromDelimitedString("NCK|20200101000001");

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