public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields() { IType hl7Type = new DailyDeductibleInformation { DelayDays = 1, MonetaryAmount = new Money { Quantity = 2 }, NumberOfDays = 3 }; string expected = "1^2^3"; string actual = hl7Type.ToDelimitedString(); Assert.Equal(expected, actual); }
public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { IType expected = new DailyDeductibleInformation { DelayDays = 1, MonetaryAmount = new Money { IsSubcomponent = true, Quantity = 2 }, NumberOfDays = 3 }; IType actual = new DailyDeductibleInformation(); actual.FromDelimitedString("1^2^3"); expected.Should().BeEquivalentTo(actual); }