예제 #1
0
        public void TestCsrClassWontCompile()
        {
            CsrTool csr = new CsrTool(new TraceOutputter());

            csr.ScriptPath = new ParsedPath("WontCompile.csr", PathType.File);

            csr.Execute();

            Assert.IsFalse(csr.Output.HasOutputErrors);
        }
예제 #2
0
        public void TestCsrClassExtensionMethod()
        {
            // Test that .NET C# v3.5 features work
            CsrTool csr = new CsrTool(new TraceOutputter());

            csr.ScriptPath = new ParsedPath("ExtensionMethod.csr", PathType.File);

            csr.Execute();

            Assert.IsFalse(csr.Output.HasOutputErrors);
        }