示例#1
0
        public void CanCallWith1ParamAndReturnValue()
        {
            var context = new MethodCallTestsContext();

            AssertTemplate.Equal(
                @"Hello #Foo#!",
                @"Hello @Wrap(""Foo"")!",
                context);
        }
示例#2
0
        public void CanCallVoidMethod()
        {
            var context = new MethodCallTestsContext();

            AssertTemplate.Equal(
                @"Hello!",
                @"@{ VoidMethod(); }Hello!",
                context);

            Assert.Equal(1, context.VoidMethodCallCount);
        }