Beispiel #1
0
        public void Split_NameThatHasNoDot_ShouldReturnNull()
        {
            var name = "NonValidName";

            SplittedName splitted = splitter.Split(name);

            Assert.IsNull(splitted);
        }
Beispiel #2
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);
        }
Beispiel #3
0
        public void Split_NameIsNull_ShouldReturnNull()
        {
            SplittedName splitted = splitter.Split(null);

            Assert.IsNull(splitted);
        }