Have a class A, and a Test for it:
Code:
class A() {
public const string foo = "bar";
public int int_prop{ get { return 7; }}
}
[Test]
public void check_const() {
A a = new A();
Assert.AreEqual(a.foo, "bar");
}
Now, i get a black dot on the left of the int_prop (but nothing on the public string).
My test passes. all are happy.
One day, the big scary troll changes my "foo" constant, and it now reads:
public const string foo = "trolled";
If I manually run my tests from Nunit, the check_const() fails miserably (like it should).
BUT ... NCrunch will still show me the green bar reassuring me everything is ok ... (which leads me to suspect that it's on the troll's pay role)
Ideas? suggestions?