public void TestGetUniqueID12() { string id = ReflectionEngineUtility.GetUniqueID(typeof(TestClass).GetEvent("AnEvent")); Assert.AreEqual(id, "E:TopCoder.CodeDoc.CSharp.Reflection.TestClass.AnEvent", "Wrong value for unique id."); }
public void TestGetUniqueID16() { string id = ReflectionEngineUtility.GetUniqueID(typeof(TestClass).GetMethod("AMethod")); Assert.AreEqual(id, "M:TopCoder.CodeDoc.CSharp.Reflection.TestClass.AMethod(System.Int32[])", "Wrong value for unique id."); }
public void TestGetUniqueID14() { string id = ReflectionEngineUtility.GetUniqueID(typeof(TestClass).GetProperty("AProperty")); Assert.AreEqual(id, "P:TopCoder.CodeDoc.CSharp.Reflection.TestClass.AProperty", "Wrong value for unique id."); }
public void TestGetUniqueID10() { string id = ReflectionEngineUtility.GetUniqueID(typeof(TestClass).GetField("aField")); Assert.AreEqual(id, "F:TopCoder.CodeDoc.CSharp.Reflection.TestClass.aField", "Wrong value for unique id."); }
public void TestGetUniqueID5() { MemberInfo mi = typeof(TestClass).GetMember("AProperty")[0]; string id = ReflectionEngineUtility.GetUniqueID(mi); Assert.AreEqual(id, "P:TopCoder.CodeDoc.CSharp.Reflection.TestClass.AProperty", "Wrong value for unique id."); }
public void TestGetUniqueID2() { MemberInfo mi = typeof(TestClass).GetConstructor(new Type[] { typeof(int) }); string id = ReflectionEngineUtility.GetUniqueID(mi); Assert.AreEqual(id, "M:TopCoder.CodeDoc.CSharp.Reflection.TestClass.#ctor(System.Int32)", "Wrong value for unique id."); }
public void TestGetUniqueID17() { ReflectionEngineUtility.GetUniqueID((MethodBase)null); }
public void TestGetUniqueID15() { ReflectionEngineUtility.GetUniqueID((PropertyInfo)null); }
public void TestGetUniqueID13() { ReflectionEngineUtility.GetUniqueID((EventInfo)null); }
public void TestGetUniqueID11() { ReflectionEngineUtility.GetUniqueID((FieldInfo)null); }
public void TestGetUniqueID9() { ReflectionEngineUtility.GetUniqueID((Type)null); }
public void TestGetUniqueIDFail1() { ReflectionEngineUtility.GetUniqueID((MemberInfo)null); }