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); }
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); }