public void CanCallWith1ParamAndReturnValue() { var context = new MethodCallTestsContext(); AssertTemplate.Equal( @"Hello #Foo#!", @"Hello @Wrap(""Foo"")!", context); }
public void CanCallVoidMethod() { var context = new MethodCallTestsContext(); AssertTemplate.Equal( @"Hello!", @"@{ VoidMethod(); }Hello!", context); Assert.Equal(1, context.VoidMethodCallCount); }