mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
enabling stylecop (#5885)
This commit is contained in:
@@ -17,5 +17,19 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Microsoft.Plugin.Uri\Microsoft.Plugin.Uri.csproj" />
|
<ProjectReference Include="..\Microsoft.Plugin.Uri\Microsoft.Plugin.Uri.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="..\..\..\..\codeAnalysis\GlobalSuppressions.cs">
|
||||||
|
<Link>GlobalSuppressions.cs</Link>
|
||||||
|
</Compile>
|
||||||
|
<AdditionalFiles Include="..\..\..\..\codeAnalysis\StyleCop.json">
|
||||||
|
<Link>StyleCop.json</Link>
|
||||||
|
</AdditionalFiles>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="StyleCop.Analyzers">
|
||||||
|
<Version>1.1.118</Version>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using Microsoft.Plugin.Uri.UriHelper;
|
using Microsoft.Plugin.Uri.UriHelper;
|
||||||
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
|
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
@@ -32,10 +36,10 @@ namespace Microsoft.Plugin.Uri.UnitTests.UriHelper
|
|||||||
[TestCase("http://test.c", true, "http://test.c/")]
|
[TestCase("http://test.c", true, "http://test.c/")]
|
||||||
[TestCase("http://test.co", true, "http://test.co/")]
|
[TestCase("http://test.co", true, "http://test.co/")]
|
||||||
[TestCase("http://test.com", true, "http://test.com/")]
|
[TestCase("http://test.com", true, "http://test.com/")]
|
||||||
[TestCase("http:3", true,"http://http:3/")]
|
[TestCase("http:3", true, "http://http:3/")]
|
||||||
[TestCase("[::]", true, "http://[::]/")]
|
[TestCase("[::]", true, "http://[::]/")]
|
||||||
[TestCase("[2001:0DB8::1]", true, "http://[2001:db8::1]/")]
|
[TestCase("[2001:0DB8::1]", true, "http://[2001:db8::1]/")]
|
||||||
[TestCase("[2001:0DB8::1]:80",true, "http://[2001:db8::1]/")]
|
[TestCase("[2001:0DB8::1]:80", true, "http://[2001:db8::1]/")]
|
||||||
public void TryParse_CanParseHostName(string query, bool expectedSuccess, string expectedResult)
|
public void TryParse_CanParseHostName(string query, bool expectedSuccess, string expectedResult)
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
@@ -50,4 +54,3 @@ namespace Microsoft.Plugin.Uri.UnitTests.UriHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user