public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields() { IType hl7Type = new MultiplexedArray { SampleYFromChannel1 = 1, SampleYFromChannel2 = 2, SampleYFromChannel3 = 3, SampleYFromChannel4 = 4 }; string expected = "1^2^3^4"; string actual = hl7Type.ToDelimitedString(); Assert.Equal(expected, actual); }
public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { IType expected = new MultiplexedArray { SampleYFromChannel1 = 1, SampleYFromChannel2 = 2, SampleYFromChannel3 = 3, SampleYFromChannel4 = 4 }; IType actual = new MultiplexedArray(); actual.FromDelimitedString("1^2^3^4"); expected.Should().BeEquivalentTo(actual); }