Esempio n. 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);
        }
Esempio n. 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);
        }