コード例 #1
0
        public void TestGetPropertyModifiers()
        {
            PropertyInfo fld = typeof(TestClass).GetProperty("AProperty");
            string       vis = ReflectionEngineUtility.GetPropertyModifiers(fld);

            Assert.AreEqual(vis, "virtual read-write", "Wrong value for visibility.");
        }
コード例 #2
0
 public void TestGetPropertyModifiersFail1()
 {
     ReflectionEngineUtility.GetPropertyModifiers(null);
 }