Skip to content

Commit 308927a

Browse files
committed
Turned on xml comments
1 parent 047bf3c commit 308927a

File tree

7 files changed

+28
-9
lines changed

7 files changed

+28
-9
lines changed

ConventionTests.sln

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.20827.3
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.22823.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AF9054EE-FE89-47A4-9156-BE54A837F2F7}"
77
ProjectSection(SolutionItems) = preProject
8+
appveyor.yml = appveyor.yml
89
Build.cmd = Build.cmd
910
ConventionTests.proj = ConventionTests.proj
1011
README.md = README.md

TestStack.ConventionTests.Autofac/TestStack.ConventionTests.Autofac.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<DefineConstants>DEBUG;TRACE</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
25+
<DocumentationFile>bin\Debug\TestStack.ConventionTests.Autofac.xml</DocumentationFile>
2526
</PropertyGroup>
2627
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2728
<DebugType>pdbonly</DebugType>
@@ -30,6 +31,7 @@
3031
<DefineConstants>TRACE</DefineConstants>
3132
<ErrorReport>prompt</ErrorReport>
3233
<WarningLevel>4</WarningLevel>
34+
<DocumentationFile>bin\Release\TestStack.ConventionTests.Autofac.xml</DocumentationFile>
3335
</PropertyGroup>
3436
<ItemGroup>
3537
<Reference Include="Autofac">

TestStack.ConventionTests.Autofac/TestStack.ConventionTests.Autofac.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
<files>
2323
<file src="TestStack.ConventionTests.Autofac.dll" target="lib\net40" />
2424
<file src="TestStack.ConventionTests.Autofac.pdb" target="lib\net40" />
25+
<file src="TestStack.ConventionTests.Autofac.xml" target="lib\net40" />
2526
</files>
2627
</package>

TestStack.ConventionTests/Convention.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public static void Is<TDataSource>(IConvention<TDataSource> convention, TDataSou
3737
Execute(convention, data, defaultProcessors, resultProcessor ?? new ConventionReportTextRenderer());
3838
}
3939

40+
/// <summary>
41+
/// Verifies a convention, any exceptions are written to ApprovalTests to approve
42+
/// </summary>
43+
/// <example>Convention.IsWithApprovedExeptions(new SomeConvention(), Types.InAssemblyOf&lt;SomeTypeOfMine&gt;())</example>
4044
public static void IsWithApprovedExeptions<TDataSource>(IConvention<TDataSource> convention, TDataSource data,
4145
ITestResultProcessor resultProcessor = null)
4246
where TDataSource : IConventionData

TestStack.ConventionTests/ConventionData/Types.cs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@
88
using System.Reflection;
99

1010
/// <summary>
11-
/// This is where we set what our convention is all about.
11+
/// ConventionTests data source of Types
1212
/// </summary>
1313
public class Types : IConventionData, IEnumerable<Type>
1414
{
15+
/// <summary>
16+
/// Create an empty Types data source.
17+
/// NOTE: There are static helper methods on this type. i.e Types.InAssemblyOf&lt;Foo&gt;()
18+
/// </summary>
1519
public Types(string descriptionOfTypes) : this(Enumerable.Empty<Type>(), descriptionOfTypes)
1620
{
1721
}
1822

23+
/// <summary>
24+
/// Create a Types data source.
25+
/// NOTE: There are static helper methods on this type. i.e Types.InAssemblyOf&lt;Foo&gt;()
26+
/// </summary>
1927
public Types(IEnumerable<Type> types, string descriptionOfTypes)
2028
{
2129
TypesToVerify = types.ToArray();
@@ -187,21 +195,21 @@ public static Types InAssembly(Assembly assembly, string descriptionOfTypes, boo
187195
}
188196

189197
/// <summary>
190-
/// Gets an optionally filtered list of types from the specified <param name="assemblies" />.
198+
/// Creates a Types data source which includes all types from the specified assemblies
191199
/// </summary>
192200
/// <param name="assemblies">A list of assemblies to get types from.</param>
193-
/// <param name="descriptionOfTypes">A description of the matched types.</param>
201+
/// <param name="descriptionOfTypes">A description of the types.</param>
194202
/// <param name="excludeCompilerGeneratedTypes">Compiler generated types will be excluded if set to <c>true</c>.</param>
195203
public static Types InAssemblies(IEnumerable<Assembly> assemblies, string descriptionOfTypes, bool excludeCompilerGeneratedTypes = true)
196204
{
197205
return InAssemblies(assemblies, descriptionOfTypes, type => !(excludeCompilerGeneratedTypes && type.IsCompilerGenerated()));
198206
}
199207

200208
/// <summary>
201-
/// Gets a list of types from the specified <param name="types" /> collection.
209+
/// Creates a Types data source from an existing list of types
202210
/// </summary>
203211
/// <param name="types">The types.</param>
204-
/// <param name="descriptionOfTypes">A description of the matched types.</param>
212+
/// <param name="descriptionOfTypes">A description of the types.</param>
205213
public static Types InCollection(IEnumerable<Type> types, string descriptionOfTypes)
206214
{
207215
return new Types(types, descriptionOfTypes);

TestStack.ConventionTests/TestStack.ConventionTests.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
24+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
25+
<DocumentationFile>bin\Debug\TestStack.ConventionTests.xml</DocumentationFile>
2526
</PropertyGroup>
2627
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2728
<DebugType>pdbonly</DebugType>
@@ -30,7 +31,8 @@
3031
<DefineConstants>TRACE</DefineConstants>
3132
<ErrorReport>prompt</ErrorReport>
3233
<WarningLevel>4</WarningLevel>
33-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
34+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
35+
<DocumentationFile>bin\Release\TestStack.ConventionTests.xml</DocumentationFile>
3436
</PropertyGroup>
3537
<ItemGroup>
3638
<Reference Include="ApprovalTests">

TestStack.ConventionTests/TestStack.ConventionTests.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
<files>
2323
<file src="TestStack.ConventionTests.dll" target="lib\net40" />
2424
<file src="TestStack.ConventionTests.pdb" target="lib\net40" />
25+
<file src="TestStack.ConventionTests.xml" target="lib\net40" />
2526
</files>
2627
</package>

0 commit comments

Comments
 (0)