예제 #1
0
        public void Split_ValidNameConsistsOfTwoPartsSeparatedByDot_ReturnsTheFirstPartAndScondPart()
        {
            var name = "TheTypeName.TheKey";

            SplittedName splitted = splitter.Split(name);

            Assert.IsNotNull(splitted);
            Assert.AreEqual("TheTypeName", splitted.TypeName);
            Assert.AreEqual("TheKey", splitted.Key);
        }
예제 #2
0
        public void TestSplitName_NoCommas_01()
        {
            const string name = "jean de la fontaine";

            Check(Splitter.Split(name)[0], expectedFamily: "fontaine", expectedGiven: "", expectedDroppingParticle: "jean de la");
        }