Skip to content

Commit b848941

Browse files
Copilottimcassell
andcommitted
Remove redundant InProcess diagnoser tests
Co-authored-by: timcassell <35501420+timcassell@users.noreply.github.com>
1 parent 74a9854 commit b848941

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,6 @@ public void InProcessBenchmarkEmitsSameIL(Type benchmarkType)
131131
Assert.DoesNotContain("No benchmarks found", logger.GetLog());
132132
}
133133

134-
[Fact]
135-
public void InProcessEmitSupportsInProcessDiagnosers()
136-
{
137-
var logger = new OutputLogger(Output);
138-
var diagnoser = new MockInProcessDiagnoser();
139-
var config = CreateInProcessConfig(logger).AddDiagnoser(diagnoser);
140-
141-
var summary = CanExecute<BenchmarkAllCases>(config);
142-
143-
var expected = Enumerable.Repeat("MockResult", summary.BenchmarksCases.Length);
144-
Assert.Equal(expected, diagnoser.Results.Values);
145-
}
146-
147134
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
148135
public class BenchmarkAllCases
149136
{

tests/BenchmarkDotNet.IntegrationTests/InProcessTest.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,19 +218,6 @@ public void InProcessBenchmarkAllCasesSupported()
218218
}
219219
}
220220

221-
[Fact]
222-
public void InProcessNoEmitSupportsInProcessDiagnosers()
223-
{
224-
var logger = new OutputLogger(Output);
225-
var diagnoser = new MockInProcessDiagnoser();
226-
var config = CreateInProcessConfig(logger).AddDiagnoser(diagnoser);
227-
228-
var summary = CanExecute<BenchmarkAllCases>(config);
229-
230-
var expected = Enumerable.Repeat("MockResult", summary.BenchmarksCases.Length);
231-
Assert.Equal(expected, diagnoser.Results.Values);
232-
}
233-
234221
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
235222
public class BenchmarkAllCases
236223
{

0 commit comments

Comments
 (0)