Ejemplo n.º 1
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            IType expected = new FamilyName
            {
                Surname          = "1",
                OwnSurnamePrefix = "2",
                OwnSurname       = "3",
                SurnamePrefixFromPartnerSpouse = "4",
                SurnameFromPartnerSpouse       = "5"
            };

            IType actual = new FamilyName();

            actual.FromDelimitedString("1^2^3^4^5");

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