13 references to compileAndRun
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineTests.cs (13)
10013(exitCode, output) = compileAndRun(featureOpt: null);
10018(exitCode, output) = compileAndRun("/features:nullablePublicOnly");
10023(exitCode, output) = compileAndRun("/features:nullablePublicOnly=true");
10028(exitCode, output) = compileAndRun("/features:nullablePublicOnly=false");
10064AssertEx.Equal(expectedWarningsAll, compileAndRun(featureOpt: null));
10065AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis"));
10066AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always"));
10067AssertEx.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never"));
10068AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored
10069AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored
10070AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored
10071AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored
10072AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored