示例#1
0
        public void ChainedMethod_Parameters()
        {
            var dog = new ASample();
            Expression <Func <string> > temp = () => dog.DoSomething("argValue").Replace("a", "b");

            string result = temp.Visit();

            Assert.AreEqual("dog.DoSomething(String something).Replace(String oldValue, String newValue)", result);
        }
        public void ChainedMethod_Parameters()
        {
            var dog = new ASample();
            Expression<Func<string>> temp = () => dog.DoSomething("argValue").Replace("a", "b");

            string result = temp.Visit();

            Assert.AreEqual("dog.DoSomething(String something).Replace(String oldValue, String newValue)", result);
        }
示例#3
0
        public void Method_Parameters()
        {
            var dog = new ASample();

            Expression <Func <string> > temp = () => dog.DoSomething("argumentValue");

            string result = temp.Visit();

            Assert.AreEqual("dog.DoSomething(String something)", result);
        }
        public void Method_Parameters()
        {
            var dog = new ASample();

            Expression<Func<string>> temp = () => dog.DoSomething("argumentValue");

            string result = temp.Visit();

            Assert.AreEqual("dog.DoSomething(String something)", result);
        }