Esempio n. 1
0
        public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields()
        {
            IType hl7Type = new SchedulingClassValuePair
            {
                ParameterClass = new CodedWithExceptions
                {
                    Identifier = "1"
                },
                ParameterValue = "2"
            };

            string expected = "1^2";
            string actual   = hl7Type.ToDelimitedString();

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            IType expected = new SchedulingClassValuePair
            {
                ParameterClass = new CodedWithExceptions
                {
                    IsSubcomponent = true,
                    Identifier     = "1"
                },
                ParameterValue = "2"
            };

            IType actual = new SchedulingClassValuePair();

            actual.FromDelimitedString("1^2");

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