public void GetValue() { Assert.AreEqual(0, _getter.Get(_instance)); _instance.Increment(); Assert.AreEqual(1, _getter.Get(_instance)); Assert.IsFalse(_instance.BlahGetterCalled); Assert.IsFalse(_instance.CamelBazGetterCalled); Assert.IsFalse(_instance.CamelUnderscoreFooGetterCalled); Assert.IsFalse(_instance.LowerUnderscoreFooGetterCalled); }
public void GetValue() { Assert.AreEqual(0, _getter.Get(_instance)); _instance.Increment(); Assert.AreEqual(1, _getter.Get(_instance)); Assert.AreEqual(_expectedBlahGetterCalled, _instance.BlahGetterCalled, "pascalcase-m-underscore"); Assert.AreEqual(_expectedCamelBazGetterCalled, _instance.CamelBazGetterCalled, "camelcase"); Assert.AreEqual(_expectedCamelUnderscoreFooGetterCalled, _instance.CamelUnderscoreFooGetterCalled, "camelcase-underscore"); Assert.AreEqual(_expectedLowerUnderscoreFooGetterCalled, _instance.LowerUnderscoreFooGetterCalled, "lowercase-underscore"); Assert.AreEqual(_expectedLowerFooGetterCalled, _instance.LowerFooGetterCalled, "lowercase"); Assert.AreEqual(_expectedPascalUnderscoreFooGetterCalled, _instance.PascalUnderscoreFooCalled, "pascalcase-underscore"); Assert.AreEqual(_expectedCamelMUnderscoreGetterCalled, _instance.CamelMUnderscoreGetterCalled, "camelcase-m-underscore"); }