Browse Source

Added tests for overrides changing access and for protected fields.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/57/head
Dimitar Dobrev 13 years ago
parent
commit
2f7934569e
  1. 8
      tests/Basic/Basic.Tests.cs

8
tests/Basic/Basic.Tests.cs

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
using System.Reflection;
using NUnit.Framework;
using Basic;
@ -95,5 +96,12 @@ public class BasicTests @@ -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);
}
}
Loading…
Cancel
Save