Exemplo n.º 1
0
        public void Split_NameThatHasNoDot_ShouldReturnNull()
        {
            var name = "NonValidName";

            SplittedName splitted = splitter.Split(name);

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

            Assert.IsNull(splitted);
        }