示例#1
0
        public void Roslyn_CompatibilityCheckInReleaseMode()
        {
            var options = CreateRoslynOptions("VS14RC3");

            options.CompilerOptions = "/optimize";
            TestDriver.BuildRewriteRun(options);
        }
示例#2
0
        public void TestAsyncPostconditionsV45()
        {
            var options = new Options(this.TestContext);

            options.FoxtrotOptions    = options.FoxtrotOptions + String.Format(" /throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.BuildFramework    = @".NETFramework\v4.5";
            options.ContractFramework = @".NETFramework\v4.0";
            options.UseTestHarness    = true;
            TestDriver.BuildRewriteRun(options);
        }
示例#3
0
        public void BuildRewriteRunFromSourcesV35()
        {
            var options = new Options(this.TestContext);

            options.FoxtrotOptions    = options.FoxtrotOptions + String.Format(" /throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.BuildFramework    = "v3.5";
            options.ContractFramework = "v3.5";
            options.UseTestHarness    = true;
            TestDriver.BuildRewriteRun(options);
        }
示例#4
0
        public void Roslyn_IteratorBlockWithComplexGeneric()
        {
            var options = CreateRoslynOptions("VS14RC3");

            // Bug with metadata reader could be reproduced only with a new mscorlib and new System.dll.
            options.BuildFramework      = @".NetFramework\v4.6";
            options.ReferencesFramework = @".NetFramework\v4.6";
            options.DeepVerify          = true;
            TestDriver.BuildRewriteRun(options);
        }
示例#5
0
        public void TestTheRoslynCompatibilityCasesWithVS2013Compiler()
        {
            var options = new Options(this.TestContext);

            options.FoxtrotOptions    = options.FoxtrotOptions + String.Format(" /throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.BuildFramework    = @".NETFramework\v4.5";
            options.ContractFramework = @".NETFramework\v4.0";
            options.UseTestHarness    = true;
            TestDriver.BuildRewriteRun(options);
        }
示例#6
0
        public void BuildRewriteFromSources45WithPublicSurfaceOnly()
        {
            var options = new Options(this.TestContext);

            // For testing purposes you can remove /publicsurface and see what happen. Part of the tests should fail!
            //options.FoxtrotOptions = options.FoxtrotOptions + String.Format("/throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.FoxtrotOptions    = options.FoxtrotOptions + String.Format(" /publicsurface /throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.BuildFramework    = @".NETFramework\v4.5";
            options.ContractFramework = @".NETFramework\v4.0";
            options.UseTestHarness    = true;

            TestDriver.BuildRewriteRun(options);
        }
示例#7
0
        [Ignore] // Old Roslyn bits are not compatible with CCRewrite. Test (and old binaries) should be removed in the next iteration.
        public void BuildRewriteRunFromSourcesRoslynV45()
        {
            var options = new Options(this.TestContext);

            options.IsLegacyRoslyn      = true;
            options.FoxtrotOptions      = options.FoxtrotOptions + String.Format(" /throwonfailure /rw:{0}.exe,TestInfrastructure.RewriterMethods", Path.GetFileNameWithoutExtension(options.TestName));
            options.BuildFramework      = @"Roslyn\v4.5";
            options.ReferencesFramework = @".NetFramework\v4.5";
            options.ContractFramework   = @".NETFramework\v4.0";
            options.UseTestHarness      = true;

            TestDriver.BuildRewriteRun(options);
        }
示例#8
0
        public void TestAsyncPostconditions()
        {
            var options = CreateRoslynOptions("VS14RC3");

            TestDriver.BuildRewriteRun(options);
        }
示例#9
0
        public void AsyncTestsWithRoslynCompiler()
        {
            var options = CreateRoslynOptions("VS14RC3");

            TestDriver.BuildRewriteRun(options);
        }
示例#10
0
        public void Roslyn_CompatibilityCheck()
        {
            var options = CreateRoslynOptions("VS14RC3");

            TestDriver.BuildRewriteRun(options);
        }
示例#11
0
        public void Roslyn_BuildRewriteRunFromSources()
        {
            var options = CreateRoslynOptions("VS14RC3");

            TestDriver.BuildRewriteRun(options);
        }