Defined the collection name as a constant string and changed the tests to use it.

This commit is contained in:
Kristian Hald
2015-04-20 21:48:08 +02:00
parent 7a69fa685e
commit 477730bcfa
2 changed files with 8 additions and 7 deletions
@@ -7,7 +7,7 @@ namespace Octokit.Tests.Integration.Clients
{
public class RepositoryHooksClientTests
{
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class TheGetAllMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -31,7 +31,7 @@ namespace Octokit.Tests.Integration.Clients
}
}
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class TheGetMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -86,7 +86,7 @@ namespace Octokit.Tests.Integration.Clients
}
}
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class TheEditMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -111,7 +111,7 @@ namespace Octokit.Tests.Integration.Clients
}
}
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class TheTestMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -130,7 +130,7 @@ namespace Octokit.Tests.Integration.Clients
}
}
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class ThePingMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -149,7 +149,7 @@ namespace Octokit.Tests.Integration.Clients
}
}
[Collection("Repositories Hooks Collection")]
[Collection(RepositoriesHooksCollection.Name)]
public class TheDeleteMethod
{
readonly RepositoriesHooksFixture _fixture;
@@ -2,8 +2,9 @@
namespace Octokit.Tests.Integration.fixtures
{
[CollectionDefinition("Repositories Hooks Collection")]
[CollectionDefinition(Name)]
public class RepositoriesHooksCollection : ICollectionFixture<RepositoriesHooksFixture>
{
public const string Name = "Repositories Hooks Collection";
}
}