public void TestGetFieldModifiers() { FieldInfo fld = typeof(TestClass).GetField("aField5"); string mod = ReflectionEngineUtility.GetFieldModifiers(fld); Assert.AreEqual(mod, "static readonly", "Wrong value for modifier."); fld = typeof(TestClass).GetField("aField6"); mod = ReflectionEngineUtility.GetFieldModifiers(fld); Assert.AreEqual(mod, "static const", "Wrong value for modifier."); }
public void TestGetFieldModifiersFail1() { ReflectionEngineUtility.GetFieldModifiers(null); }