1 write to Success
Microsoft.CodeAnalysis (1)
Compilation\EmitResult.cs (1)
31Success = success;
195 references to Success
BuildValidator (1)
CompilationDiff.cs (1)
142if (!emitResult.Success)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
152Assert.True(result.Success);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
152Assert.True(result.Success);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
353if (!result.Success)
Microsoft.CodeAnalysis (1)
Compilation\EmitResult.cs (1)
37string result = "Success = " + (Success ? "true" : "false");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
15362Assert.True(result.Success);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (61)
CodeGen\CodeGenTests.cs (1)
14661Assert.True(result.Success);
Emit\CompilationEmitTests.cs (35)
160Assert.False(emitResult.Success); 218Assert.True(emitResult.Success); 241Assert.True(emitResult.Success); 276Assert.True(emitResult.Success); 321Assert.True(emitResult.Success); 368Assert.True(emitResult.Success); 422Assert.True(emitResult.Success); 478Assert.True(emitResult.Success); 530Assert.True(emitResult.Success); 570Assert.True(emitResult.Success); 709Assert.True(emitResult.Success); 735Assert.True(emitResult.Success); 759Assert.True(emitResult.Success); 789Assert.True(emitResult.Success); 841Assert.True(emitResult.Success); 882Assert.True(emitResult.Success); 2102Assert.Equal(success, emitResult.Success); 2660Assert.True(result.Success); 2712Assert.True(emitResult.Success); 2765Assert.True(emitResult.Success); 3377Assert.False(emitResult.Success); 3410Assert.True(emitResult.Success); 3448Assert.True(emitResult.Success); 4023Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameWithExtension)).Success); 4059Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: outputName + extension)).Success); 4089Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride + extension)).Success); 4120Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride)).Success); 4151Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride + extension)).Success); 4182Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride)).Success); 4238Assert.False(result.Success); 4639Assert.True(result.Success, "Compilation failed"); 5458Assert.False(result.Success); 5480Assert.False(result.Success); 5598Assert.False(emitResult.Success); 5647Assert.True(emitResult.Success);
Emit\DeterministicTests.cs (2)
87Assert.False(resultDeterministic.Success); 88Assert.True(resultNonDeterministic.Success);
Emit\EmitErrorTests.cs (2)
243Assert.False(result.Success); 255Assert.True(result.Success);
Emit\NoPiaEmbedTypes.cs (3)
136Assert.False(result.Success); 146Assert.True(result.Success); 151Assert.False(result.Success);
Emit\ResourceTests.cs (18)
420Assert.True(result.Success); 473Assert.False(result.Success); 483Assert.False(result.Success); 492Assert.False(result.Success); 508Assert.True(result.Success); 518Assert.True(result2.Success); 558Assert.True(result.Success); 566Assert.True(result3.Success); 614Assert.True(result.Success); 628Assert.True(result4.Success); 667Assert.True(result5.Success); 713Assert.True(result6.Success); 717Assert.False(result6.Success); 732Assert.True(result6.Success); 736Assert.False(result6.Success); 753Assert.True(result6.Success); 780Assert.False(result.Success); 807Assert.False(result.Success);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
PDB\PDBAsyncTests.cs (1)
2041Assert.True(result.Success);
PDB\PDBIteratorTests.cs (1)
1635Assert.True(result.Success);
PDB\PDBTests.cs (8)
59Assert.False(result.Success); 74Assert.True(result.Success); 115Assert.True(result.Success); 272Assert.False(result.Success); 304Assert.False(result.Success); 336Assert.False(result.Success); 368Assert.False(result.Success); 12886Assert.True(result.Success);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Attributes\AttributeTests.cs (2)
10037Assert.False(emitResult2.Success); 10051Assert.False(emitResult3.Success);
Attributes\AttributeTests_Assembly.cs (1)
941Assert.True(compilation.Emit(stream).Success);
Attributes\AttributeTests_Security.cs (2)
1640Assert.False(emitResult.Success); 1652Assert.True(emitResult.Success);
Attributes\InternalsVisibleToAndStrongNameTests.cs (24)
1509Assert.True(success.Success); 1565Assert.True(success.Success); 1649Assert.False(success.Success); 1666Assert.True(success.Success); 1686Assert.True(success.Success); 1704Assert.False(success.Success); 1723Assert.True(success.Success); 1761Assert.True(success.Success); 1783Assert.True(success.Success); 1800Assert.False(success.Success); 1871Assert.True(emitResult.Success); 1894Assert.True(emitResult.Success); 1910Assert.True(emitResult.Success); 1929Assert.True(emitResult.Success); 1948Assert.True(emitResult.Success); 2452Assert.True(emitResult.Success); 2520Assert.True(success.Success); 2547Assert.False(success.Success); 2578Assert.False(result.Success); 2608Assert.False(success.Success); 2638Assert.True(success.Success); 2663Assert.False(success.Success); 2693Assert.True(success.Success); 2877Assert.True(success.Success);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\IteratorTests.cs (1)
278Assert.True(emitResult.Success);
Semantics\LambdaTests.cs (1)
526Assert.True(emitResult.Success);
Semantics\QueryTests.cs (2)
2607Assert.False(CreateCompilationWithMscorlib40AndSystemCore(sourceCode).Emit(output).Success); 2629Assert.False(CreateCompilationWithMscorlib40AndSystemCore(sourceCode).Emit(output).Success);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (5)
420Assert.False(result.Success); 481xmlDocumentationStream: new TestStream(canRead: true, canWrite: false, canSeek: true)).Success); 3099Assert.True(result.Success); 3118Assert.True(result.Success); 3139Assert.True(result.Success);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (17)
PdbTests.cs (17)
30Assert.True(result.Success); 32Assert.True(result.Success); 34Assert.True(result.Success); 36Assert.True(result.Success); 38Assert.True(result.Success); 40Assert.True(result.Success); 42Assert.True(result.Success); 44Assert.True(result.Success); 46Assert.True(result.Success); 48Assert.True(result.Success); 50Assert.True(result.Success); 52Assert.True(result.Success); 54Assert.True(result.Success); 56Assert.True(result.Success); 58Assert.True(result.Success); 60Assert.True(result.Success); 128Assert.True(result.Success);
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\EditSession.cs (2)
120Debug.Assert(emitResult.Success); 1042if (emitResult.Success)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
58Assert.True(emitResult.Success); 109Assert.True(result.Success);
Microsoft.CodeAnalysis.Scripting (1)
ScriptBuilder.cs (1)
136if (!emitResult.Success)
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\CompilationExtensions.cs (2)
90Assert.True(emitResult.Success, "Diagnostics:\r\n" + string.Join("\r\n", emitResult.Diagnostics.Select(d => d.ToString()))); 104Assert.True(emitResult.Success, "Diagnostics: " + string.Join(", ", emitResult.Diagnostics.Select(d => d.ToString())));
Compilation\IRuntimeEnvironment.cs (1)
287if (result.Success)
TestBase.cs (1)
200if (!emitResult.Success)
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerFileReferenceTests.cs (1)
491Assert.True(result.Success);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
10855Assert.[True](result.Success)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (31)
Attributes\AssemblyAttributes.vb (1)
1150Assert.True(comp.Emit(stream).Success)
Attributes\InternalsVisibleToAndStrongNameTests.vb (14)
1274Assert.True(emitResult.Success) 1293Assert.True(emitResult.Success) 1400Assert.True(emitResult.Success) 1449Assert.True(success.Success) 1476Assert.True(success.Success) 1500Assert.True(success.Success) 1528Assert.True(success.Success) 1601Assert.True(success.Success) 1630Assert.True(success.Success) 1784Assert.False(emitResult.Success) 1816Assert.False(emitResult.Success) 1853Assert.False(emitResult.Success) 1907Assert.False(emitResult.Success) 1961Assert.True(emitResult.Success)
CodeGen\CodeGenScriptTests.vb (1)
281Assert.False(emitResult.Success)
Emit\CompilationEmitTests.vb (11)
273Assert.True(emitResult.Success) 296Assert.True(emitResult.Success) 329Assert.True(emitResult.Success) 375Assert.True(emitResult.Success) 421Assert.True(emitResult.Success) 470Assert.True(emitResult.Success) 520Assert.True(emitResult.Success) 569Assert.True(emitResult.Success) 2036Assert.True(c.Emit(s).Success) 3768Assert.False(emitResult.Success) 3780Assert.True(emitResult.Success)
Emit\ResourceTests.vb (2)
270Assert.False(result.Success) 298Assert.False(result.Success)
PDB\PDBTests.vb (2)
37Assert.False(result.Success) 51Assert.True(result.Success)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Compilation\CompilationAPITests.vb (15)
418Assert.True(result.Success) 420Assert.True(result.Success) 422Assert.True(result.Success) 424Assert.True(result.Success) 426Assert.True(result.Success) 428Assert.True(result.Success) 430Assert.True(result.Success) 432Assert.True(result.Success) 434Assert.True(result.Success) 436Assert.True(result.Success) 438Assert.True(result.Success) 440Assert.True(result.Success) 442Assert.True(result.Success) 487xmlDocumentationStream:=New TestStream(canRead:=True, canWrite:=False, canSeek:=True)).Success) 511Assert.False(result.Success)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
249if (emitResult.Success)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
128Assert.True(result.Success);
Microsoft.Gen.Logging.Unit.Tests (1)
CompilationHelper.cs (1)
58if (!emitResult.Success)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\TempPECompilerService.cs (1)
68return result.Success ? VSConstants.S_OK : VSConstants.S_FALSE;
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
46if (result.Success)
WinShimmer (1)
Program.cs (1)
79if (!emit.Success)