Ejemplo n.º 1
0
        public void Split_Type_Can_Split_Full_Qualified_Type_Into_NS_And_Type()
        {
            TypeQueryFactory fac = new TypeQueryFactory();
            KeyValuePair <string, string> nsType = fac.SplitNameSpaceAndType("System.Diagnostics.Debug");

            Assert.AreEqual("System.Diagnostics", nsType.Key);
            Assert.AreEqual("Debug", nsType.Value);
        }
Ejemplo n.º 2
0
        public void Split_Type_NS_Is_Null_When_Type_Has_No_Prefix()
        {
            TypeQueryFactory fac = new TypeQueryFactory();
            KeyValuePair <string, string> nsType = fac.SplitNameSpaceAndType("TypeName");

            Assert.IsNull(nsType.Key, "Namespace should be null");
            Assert.AreEqual("TypeName", nsType.Value, "Splitted value should be there");
        }
Ejemplo n.º 3
0
        public void Split_Type_Throws_On_Empty_Type()
        {
            TypeQueryFactory fac = new TypeQueryFactory();

            fac.SplitNameSpaceAndType("");
        }