public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { IType expected = new PolicyTypeAndAmount { PolicyType = new CodedWithExceptions { IsSubcomponent = true, Identifier = "1" }, AmountClass = new CodedWithExceptions { IsSubcomponent = true, Identifier = "2" }, MoneyOrPercentageQuantity = 3, MoneyOrPercentage = new MoneyOrPercentage { IsSubcomponent = true, MoneyOrPercentageIndicator = "4" } }; IType actual = new PolicyTypeAndAmount(); actual.FromDelimitedString("1^2^3^4"); expected.Should().BeEquivalentTo(actual); }