mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Fix up test class names
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user