Skip to content

Commit a365d74

Browse files
author
tom-englert
committed
Fix tests
1 parent 93f067e commit a365d74

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ steps:
1717
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
1818

1919
- task: VSBuild@1
20+
displayName: Build
2021
inputs:
2122
solution: '$(solution)'
2223
platform: '$(buildPlatform)'
2324
configuration: '$(buildConfiguration)'
2425
msbuildArgs: '-restore'
2526

2627
- task: DotNetCoreCLI@2
28+
displayName: Test
2729
inputs:
2830
command: 'test'
2931
projects: '$(solution)'

src/Nullable.Extended.Analyzer/Nullable.Extended.Analyzer.Test/NullForgivingCodeFixProviderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void M(object? item)
3535

3636
var expected = new[]
3737
{
38-
DiagnosticResult.CompilerWarning(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
38+
DiagnosticResult.CompilerError(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
3939
};
4040

4141
await VerifyCodeFixAsync(source, expected, fixedSource);
@@ -67,7 +67,7 @@ void M(object? item)
6767

6868
var expected = new[]
6969
{
70-
DiagnosticResult.CompilerWarning(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
70+
DiagnosticResult.CompilerError(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
7171
};
7272

7373
await VerifyCodeFixAsync(source, expected, fixedSource);

0 commit comments

Comments
 (0)