public void setBlocked_UpdatesBlockedValue() { var expected = true; cc.SetBlocked(expected); FieldInfo fi = typeof(CreditCard).GetField("_blocked", BindingFlags.Instance | BindingFlags.NonPublic); var actual = fi.GetValue(cc); Assert.That(actual, Is.EqualTo(expected)); }