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