Update dependencies

* Add support for C# 12
* Run all tests on all major .NET SDKs
* Only build on Ubuntu
* Do not build docs for pull requests
* Add Cédric Luthi, and Frank Ray to authors
* Drop netstandard2.0 for ImageSharp plugin
This commit is contained in:
Patrik Svensson
2024-01-31 14:55:54 +01:00
committed by Patrik Svensson
parent 703d653ec5
commit b21e07ea94
57 changed files with 173 additions and 421 deletions

View File

@@ -12,7 +12,7 @@ public class NoPromptsDuringLiveRenderablesTests
const string Source = @"
using Spectre.Console;
class TestClass
class TestClass
{
void Go()
{
@@ -21,8 +21,7 @@ class TestClass
}";
await SpectreAnalyzerVerifier<NoPromptsDuringLiveRenderablesAnalyzer>
.VerifyAnalyzerAsync(Source)
.ConfigureAwait(false);
.VerifyAnalyzerAsync(Source);
}
[Fact]
@@ -31,7 +30,7 @@ class TestClass
const string Source = @"
using Spectre.Console;
class TestClass
class TestClass
{
public IAnsiConsole _console = AnsiConsole.Console;
@@ -45,8 +44,7 @@ class TestClass
}";
await SpectreAnalyzerVerifier<NoPromptsDuringLiveRenderablesAnalyzer>
.VerifyAnalyzerAsync(Source, _expectedDiagnostics.WithLocation(12, 26))
.ConfigureAwait(false);
.VerifyAnalyzerAsync(Source, _expectedDiagnostics.WithLocation(12, 26));
}
[Fact]
@@ -55,7 +53,7 @@ class TestClass
const string Source = @"
using Spectre.Console;
class TestClass
class TestClass
{
void Go()
{
@@ -67,8 +65,7 @@ class TestClass
}";
await SpectreAnalyzerVerifier<NoPromptsDuringLiveRenderablesAnalyzer>
.VerifyAnalyzerAsync(Source, _expectedDiagnostics.WithLocation(10, 13))
.ConfigureAwait(false);
.VerifyAnalyzerAsync(Source, _expectedDiagnostics.WithLocation(10, 13));
}
[Fact]
@@ -92,7 +89,6 @@ class Program
}";
await SpectreAnalyzerVerifier<NoPromptsDuringLiveRenderablesAnalyzer>
.VerifyAnalyzerAsync(Source)
.ConfigureAwait(false);
.VerifyAnalyzerAsync(Source);
}
}