public void OneIntParameterMethod() { Expression <Func <AssertionInterface, int> > expression = assertionClass => assertionClass.OneIntParameterMethod(0); var sut = new ParseAssertionProperty(expression); Assert.AreEqual("OneIntParameterMethod(0)", sut.PropertyName); }
public void SimpleProperty() { Expression <Func <AssertionInterface, int> > expression = assertionClass => assertionClass.SimpleProperty; var sut = new ParseAssertionProperty(expression); Assert.AreEqual("SimpleProperty", sut.PropertyName); }