Example #1
0
        public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields()
        {
            ISegment hl7Segment = new RdfSegment
            {
                NumberOfColumnsPerRow = 1,
                ColumnDescription     = new RowColumnDefinition[]
                {
                    new RowColumnDefinition
                    {
                        SegmentFieldName = "2"
                    }
                }
            };

            string expected = "RDF|1|2";
            string actual   = hl7Segment.ToDelimitedString();

            Assert.Equal(expected, actual);
        }