Ejemplo n.º 1
0
        public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields()
        {
            IType expected = new PersonName
            {
                FamilyName = "1",
                GivenName  = "2",
                SecondAndFurtherGivenNamesOrInitialsThereof = "3",
                Suffix = "4",
                Prefix = "5",
                Degree = "6"
            };

            IType actual = new PersonName();

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

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