コード例 #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
ファイル: MemberQueryTest.cs プロジェクト: ChrisBDFA/fitsharp
 [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
ファイル: RuntimeTypeTest.cs プロジェクト: abombss/fitsharp
 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);
 }