From 2f7934569e6036b629fb365318a66f2c2fbaecb9 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 8 Sep 2013 00:50:03 +0300 Subject: [PATCH] Added tests for overrides changing access and for protected fields. Signed-off-by: Dimitar Dobrev --- tests/Basic/Basic.Tests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Basic/Basic.Tests.cs b/tests/Basic/Basic.Tests.cs index 9bc6fc5d..19253e07 100644 --- a/tests/Basic/Basic.Tests.cs +++ b/tests/Basic/Basic.Tests.cs @@ -1,3 +1,4 @@ +using System.Reflection; using NUnit.Framework; using Basic; @@ -95,5 +96,12 @@ public class BasicTests Assert.AreEqual(abstractFoo.pureFunction1(), 10); Assert.AreEqual(abstractFoo.pureFunction2(), 15); } + + [Test] + public void TestPropertyAccessModifier() + { + Assert.That(typeof(Foo2).GetProperty("P", + BindingFlags.Instance | BindingFlags.NonPublic), Is.Not.Null); + } } \ No newline at end of file