示例#1
0
        public void TestGenerateName()
        {
            Type e = typeof(TestEnum);

            gen.GenerateName(e);
            docUtility.Received().GenerateName(e);
        }
示例#2
0
        public void TestGenerateName()
        {
            FieldInfo field = typeof(TestClass).GetField("IntField");

            gen.GenerateName(field);

            utility.Received().GenerateName(field);
        }
        public void TestGenerateName()
        {
            PropertyInfo property = typeof(PropertyTestClass).GetProperty("PublicProperty");

            gen.GenerateName(property);

            docUtility.Received().GenerateName(property);
        }
示例#4
0
        public void TestGenerateName()
        {
            MethodBase method = typeof(MethodTestClass).GetMethod("Method");

            methodUtility.GenerateName(method);

            docUtility.Received().GenerateName(method);
        }
示例#5
0
        public void TestGenerateReturnValue()
        {
            MethodInfo  method = typeof(MethodTestClass).GetMethod("Method");
            ReturnValue val    = gen.GenerateReturnValue(method);

            Assert.AreEqual(ReturnModifier.None, val.Modifier);
            docUtility.Received().MakeMemberRef(method.ReturnType);
            Assert.AreEqual(false, val.IsGenericType);
            Assert.AreEqual(-1, val.GenericTypePosition);
        }
示例#6
0
        public void TestGenerateName()
        {
            Type c = typeof(TestClass);

            gen.GenerateName(c);
            docUtility.Received().GenerateName(c);
        }