From ff1a0636ade3f2f02a41297ea65d4e12177196bd Mon Sep 17 00:00:00 2001 From: Vlada Shubina Date: Wed, 23 Nov 2022 15:36:05 +0100 Subject: [PATCH] temporarily disabled C# 12 tests - https://github.com/dotnet/sdk/issues/29195 --- .../dotnet-new.Tests/CommonTemplatesTests.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs index c9b124dc5ce9..1688065bc181 100644 --- a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs +++ b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs @@ -335,7 +335,8 @@ public void NuGetConfigPermissions() }; string[] unsupportedLanguageVersions = { "1", "ISO-1" }; - string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; + //C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195 + string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" }; string?[] topLevelStatementSupport = { null, "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; @@ -442,8 +443,9 @@ static void Main(string[] args) } [Theory] - [InlineData("12.0")] - [InlineData("12")] + //C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195 + //[InlineData("12.0")] + //[InlineData("12")] [InlineData("11.0")] [InlineData("11")] [InlineData("10.0")] @@ -548,7 +550,8 @@ static void Main(string[] args) }; string[] unsupportedLanguageVersions = { "1", "ISO-1" }; - string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; + //C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195 + string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" }; string?[] supportedInFrameworkByDefault = { null, "net8.0", "netstandard2.1" }; string?[] supportedInLanguageVersion = { "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; @@ -654,7 +657,8 @@ public void NullableSupport(string name, bool buildPass, string? framework, stri new { Template = "classlib", Frameworks = new[] { null, "net8.0", "netstandard2.0", "netstandard2.1" } } }; string[] unsupportedLanguageVersions = { "1", "ISO-1" }; - string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; + //C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195 + string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" }; string?[] supportedInFramework = { null, "net8.0" }; string?[] supportedInLangVersion = { null, "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; @@ -757,7 +761,8 @@ public void ImplicitUsingsSupport(string name, bool buildPass, string? framework new { Template = "classlib", Frameworks = new[] { null, "net8.0", "netstandard2.0", "netstandard2.1" } } }; string[] unsupportedLanguageVersions = { "1", "ISO-1" }; - string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" }; + //C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195 + string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" }; string?[] supportedFrameworks = { null, "net8.0" }; string?[] fileScopedNamespacesSupportedLanguages = { "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };