public void TestGetFieldVisibility()
        {
            FieldInfo fld = typeof(TestClass).GetField("aField");
            string    vis = ReflectionEngineUtility.GetFieldVisibility(fld);

            Assert.AreEqual(vis, "public", "Wrong value for visibility.");

            fld = typeof(TestClass).GetField("aField1", BindingFlags.Instance | BindingFlags.NonPublic);
            vis = ReflectionEngineUtility.GetFieldVisibility(fld);
            Assert.AreEqual(vis, "protected", "Wrong value for visibility.");

            fld = typeof(TestClass).GetField("aField2", BindingFlags.Instance | BindingFlags.NonPublic);
            vis = ReflectionEngineUtility.GetFieldVisibility(fld);
            Assert.AreEqual(vis, "private", "Wrong value for visibility.");

            fld = typeof(TestClass).GetField("aField3", BindingFlags.Instance | BindingFlags.NonPublic);
            vis = ReflectionEngineUtility.GetFieldVisibility(fld);
            Assert.AreEqual(vis, "internal", "Wrong value for visibility.");

            fld = typeof(TestClass).GetField("aField4", BindingFlags.Instance | BindingFlags.NonPublic);
            vis = ReflectionEngineUtility.GetFieldVisibility(fld);
            Assert.AreEqual(vis, "protected internal", "Wrong value for visibility.");
        }
 public void TestGetFieldVisibilityFail1()
 {
     ReflectionEngineUtility.GetFieldVisibility(null);
 }