Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-englert committed Dec 6, 2023
1 parent 93f067e commit a365d74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ steps:
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')

- task: VSBuild@1
displayName: Build
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArgs: '-restore'

- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
projects: '$(solution)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void M(object? item)

var expected = new[]
{
DiagnosticResult.CompilerWarning(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
DiagnosticResult.CompilerError(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
};

await VerifyCodeFixAsync(source, expected, fixedSource);
Expand Down Expand Up @@ -67,7 +67,7 @@ void M(object? item)

var expected = new[]
{
DiagnosticResult.CompilerWarning(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
DiagnosticResult.CompilerError(NullForgivingDetectionAnalyzer.GeneralDiagnosticId).WithLocation(0)
};

await VerifyCodeFixAsync(source, expected, fixedSource);
Expand Down

0 comments on commit a365d74

Please sign in to comment.