public void get_value_works() { const string text = "Winter is coming..."; var source = new ExpressionTestsSource(text); Expression<Func<ExpressionTestsSource, string>> expression = x => x.Text; expression.GetValue(source).ShouldEqual(text); }
public void get_value_works() { const string text = "Winter is coming..."; var source = new ExpressionTestsSource(text); Expression <Func <ExpressionTestsSource, string> > expression = x => x.Text; expression.GetValue(source).ShouldBe(text); }