public void TestGenerateName() { Type e = typeof(TestEnum); gen.GenerateName(e); docUtility.Received().GenerateName(e); }
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); }
public void TestGenerateName() { MethodBase method = typeof(MethodTestClass).GetMethod("Method"); methodUtility.GenerateName(method); docUtility.Received().GenerateName(method); }
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); }
public void TestGenerateName() { Type c = typeof(TestClass); gen.GenerateName(c); docUtility.Received().GenerateName(c); }