37 references to WithInstrumentationKinds
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (14)
76
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
220
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
340
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
434
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
491
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
530
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
561
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
601
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
669
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
750
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
831
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
925
var peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
980
var emitOptions = EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage));
1019
var emitOptions = EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage));
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (5)
2450
ImmutableArray<Diagnostic> diagnostics = CreateEmptyCompilation(source + InstrumentationHelperSource).GetEmitDiagnostics(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
2961
var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
2997
var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
3648
emitOptions: EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)),
3663
return base.CompileAndVerify(compilation, expectedOutput: expectedOutput, emitOptions: EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\LocalStateTracing\LocalStateTracingTests.cs (1)
34
var options = EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.CreateRange(kinds));
Microsoft.CodeAnalysis.Test.Utilities (1)
InstrumentationChecker.cs (1)
322
var peImage = compilation.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Microsoft.CodeAnalysis.UnitTests (2)
Emit\EmitOptionsTests.cs (2)
67
TestProperty((old, value) => old.
WithInstrumentationKinds
(value), opt => opt.InstrumentationKinds, ImmutableArray.Create(InstrumentationKind.TestCoverage));
143
Assert.Equal(options1, options2.
WithInstrumentationKinds
(default));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (8)
76
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
193
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
293
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
361
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
455
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
560
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
650
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
747
Dim peImage = c.EmitToArray(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (6)
1915
Dim diagnostics As ImmutableArray(Of Diagnostic) = CreateCompilation(source).GetEmitDiagnostics(EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
2345
Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
2382
Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
2819
emitOptions:=EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
2827
emitOptions:=EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)))
2835
emitOptions:=EmitOptions.Default.
WithInstrumentationKinds
(ImmutableArray.Create(InstrumentationKind.TestCoverage)),