Skip to content

Commit 54243f7

Browse files
committed
Apply StyleCop to library project
1 parent d14ac49 commit 54243f7

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

nuget.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
<config>
44
<add key="repositorypath" value="packages" />
55
</config>
6+
<packageSources>
7+
<add key="myget.org/F/aarnott" value="https://www.myget.org/F/aarnott/api/v2" />
8+
</packageSources>
69
</configuration>

src/Xunit.Combinatorial/CombinatorialValuesAttribute.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@
33
using System;
44
using Validation;
55

6+
/// <summary>
7+
/// Specifies which values for this parameter should be used for running the test method.
8+
/// </summary>
69
[AttributeUsage(AttributeTargets.Parameter)]
710
public class CombinatorialValuesAttribute : Attribute
811
{
12+
/// <summary>
13+
/// Initializes a new instance of the <see cref="CombinatorialValuesAttribute"/> class.
14+
/// </summary>
15+
/// <param name="values">The values to pass to this parameter.</param>
916
public CombinatorialValuesAttribute(params object[] values)
1017
{
1118
Requires.NotNull(values, nameof(values));
1219

1320
this.Values = values;
1421
}
1522

23+
/// <summary>
24+
/// Gets the values that should be passed to this parameter on the test method.
25+
/// </summary>
26+
/// <value>An array of values.</value>
1627
public object[] Values { get; }
1728
}
1829
}

src/Xunit.Combinatorial/Xunit.Combinatorial.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
<ItemGroup>
5858
<None Include="packages.config" />
5959
</ItemGroup>
60+
<ItemGroup>
61+
<Analyzer Include="..\..\packages\StyleCop.Analyzers.1.0.0-alpha-g4e621dfd0d\tools\analyzers\StyleCop.Analyzers.dll" />
62+
</ItemGroup>
6063
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
6164
<Import Project="..\..\Packages\Nerdbank.GitVersioning.1.0.15178-beta\build\NerdBank.GitVersioning.targets" Condition="Exists('..\..\Packages\Nerdbank.GitVersioning.1.0.15178-beta\build\NerdBank.GitVersioning.targets')" />
6265
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

src/Xunit.Combinatorial/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Nerdbank.GitVersioning" version="1.0.15178-beta" targetFramework="portable45-net45+win8+wp8+wpa81" developmentDependency="true" />
4+
<package id="StyleCop.Analyzers" version="1.0.0-alpha-g4e621dfd0d" targetFramework="portable45-net45+win8+wp8+wpa81" developmentDependency="true" />
45
<package id="Validation" version="2.0.6.15003" targetFramework="portable45-net45+win8+wp8+wpa81" />
56
<package id="xunit.abstractions" version="2.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
67
<package id="xunit.extensibility.core" version="2.0.0" targetFramework="portable45-net45+win8+wp8+wpa81" />

0 commit comments

Comments
 (0)