disabled DotnetNewShowsCuratedListCorrectly on non-invariant and non-English locales
This commit is contained in:
parent
44c2a6848b
commit
826828bfd9
1 changed files with 9 additions and 0 deletions
|
@ -166,6 +166,15 @@ namespace EndToEnd.Tests
|
|||
[Fact]
|
||||
public void DotnetNewShowsCuratedListCorrectly()
|
||||
{
|
||||
string locale = System.Threading.Thread.CurrentThread.CurrentUICulture.Name;
|
||||
if (!string.IsNullOrWhiteSpace(locale)
|
||||
&& !locale.StartsWith("en", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
Console.WriteLine($"[{nameof(DotnetNewShowsCuratedListCorrectly)}] CurrentUICulture: {locale}");
|
||||
Console.WriteLine($"[{nameof(DotnetNewShowsCuratedListCorrectly)}] Test is skipped as it supports only 'en' or invariant culture.");
|
||||
return;
|
||||
}
|
||||
|
||||
string expectedOutput =
|
||||
@"[\-\s]+
|
||||
[\w \.]+webapp,razor\s+\[C#\][\w\ \/]+
|
||||
|
|
Loading…
Reference in a new issue