Пример #1
0
        public void OneIntParameterMethod()
        {
            Expression <Func <AssertionInterface, int> > expression = assertionClass => assertionClass.OneIntParameterMethod(0);

            var sut = new Assertions.ParseAssertionProperty(expression);

            Assert.AreEqual("OneIntParameterMethod(0)", sut.PropertyName);
        }
Пример #2
0
        public void SimpleProperty()
        {
            Expression <Func <AssertionInterface, int> > expression = assertionClass => assertionClass.SimpleProperty;

            var sut = new Assertions.ParseAssertionProperty(expression);

            Assert.AreEqual("SimpleProperty", sut.PropertyName);
        }