Fix up test class names

This commit is contained in:
Paul Betts
2014-04-30 21:34:07 -07:00
parent 1c8ac1d32a
commit a38df58035
3 changed files with 14 additions and 14 deletions
+10 -10
View File
@@ -18,7 +18,7 @@ namespace Octokit.Tests.Http
const string ExampleUrl = "http://example.com";
static readonly Uri ExampleUri = new Uri(ExampleUrl);
public class TheGetAsyncMethod
public class TheGetMethod
{
[Fact]
public async Task SendsProperlyFormattedRequest()
@@ -303,7 +303,7 @@ namespace Octokit.Tests.Http
}
}
public class ThePatchAsyncMethod
public class ThePatchMethod
{
[Fact]
public async Task RunsConfiguredAppWithAppropriateEnv()
@@ -318,7 +318,7 @@ namespace Octokit.Tests.Http
httpClient,
Substitute.For<IJsonSerializer>());
await connection.PatchAsync<string>(new Uri("endpoint", UriKind.Relative), new object());
await connection.Patch<string>(new Uri("endpoint", UriKind.Relative), new object());
httpClient.Received(1).Send<string>(Arg.Is<IRequest>(req =>
req.BaseAddress == ExampleUri &&
@@ -341,13 +341,13 @@ namespace Octokit.Tests.Http
httpClient,
Substitute.For<IJsonSerializer>());
await connection.PatchAsync<string>(new Uri("endpoint", UriKind.Relative), new object(), "custom/accepts");
await connection.Patch<string>(new Uri("endpoint", UriKind.Relative), new object(), "custom/accepts");
httpClient.Received(1).Send<string>(Arg.Is<IRequest>(req => req.Headers["Accept"] == "custom/accepts"), Args.CancellationToken);
}
}
public class ThePutAsyncMethod
public class ThePutMethod
{
[Fact]
public async Task MakesPutRequestWithData()
@@ -362,7 +362,7 @@ namespace Octokit.Tests.Http
httpClient,
Substitute.For<IJsonSerializer>());
await connection.PutAsync<string>(new Uri("endpoint", UriKind.Relative), new object());
await connection.Put<string>(new Uri("endpoint", UriKind.Relative), new object());
httpClient.Received(1).Send<string>(Arg.Is<IRequest>(req =>
req.BaseAddress == ExampleUri &&
@@ -385,7 +385,7 @@ namespace Octokit.Tests.Http
httpClient,
Substitute.For<IJsonSerializer>());
await connection.PutAsync<string>(new Uri("endpoint", UriKind.Relative), new object(), "two-factor");
await connection.Put<string>(new Uri("endpoint", UriKind.Relative), new object(), "two-factor");
httpClient.Received(1).Send<string>(Arg.Is<IRequest>(req =>
req.BaseAddress == ExampleUri &&
@@ -397,7 +397,7 @@ namespace Octokit.Tests.Http
}
}
public class ThePostAsyncMethod
public class ThePostMethod
{
[Fact]
public async Task SendsProperlyFormattedPostRequest()
@@ -475,7 +475,7 @@ namespace Octokit.Tests.Http
}
}
public class TheDeleteAsyncMethod
public class TheDeleteMethod
{
[Fact]
public async Task SendsProperlyFormattedDeleteRequest()
@@ -489,7 +489,7 @@ namespace Octokit.Tests.Http
httpClient,
Substitute.For<IJsonSerializer>());
await connection.DeleteAsync(new Uri("endpoint", UriKind.Relative));
await connection.Delete(new Uri("endpoint", UriKind.Relative));
httpClient.Received(1).Send<object>(Arg.Is<IRequest>(req =>
req.BaseAddress == ExampleUri &&