Пример #1
0
        [Test] public void QueryableMemberIsInvoked()
        {
            var           queryable = new QueryableClass();
            RuntimeMember method    = RuntimeType.GetInstance(new TypedValue(queryable), new IdentifierName("dynamic"), 1);
            TypedValue    result    = method.Invoke(new object[] { "stuff" });

            Assert.AreEqual("dynamicstuff", result.Value);
        }
Пример #2
0
        [Test] public void QueryableMemberIsInvoked()
        {
            var           queryable = new QueryableClass();
            RuntimeMember method    = GetMethodFromProcessor(queryable, "dynamic", 1);
            TypedValue    result    = method.Invoke(new object[] { "stuff" });

            Assert.AreEqual("dynamicstuff", result.Value);
        }
Пример #3
0
 [Test] public void QueryableMemberIsInvoked() {
     var queryable = new QueryableClass();
     RuntimeMember method = GetMethodFromProcessor(queryable, "dynamic", 1);
     TypedValue result = method.Invoke(new object[] {"stuff"});
     Assert.AreEqual("dynamicstuff", result.Value);
 }
Пример #4
0
 public void QueryableMemberIsInvoked()
 {
     var queryable = new QueryableClass();
     RuntimeMember method = RuntimeType.GetInstance(new TypedValue(queryable), new IdentifierName("dynamic"), 1);
     TypedValue result = method.Invoke(new object[] {"stuff"});
     Assert.AreEqual("dynamicstuff", result.Value);
 }