mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Fix up test class names
This commit is contained in:
@@ -492,7 +492,7 @@ public class RepositoriesClientTests
|
||||
}
|
||||
}
|
||||
|
||||
public class TheGetAsyncMethod
|
||||
public class TheGetMethod
|
||||
{
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsSpecifiedRepository()
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Octokit.Tests.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public class TheUpdateAsyncMethod
|
||||
public class TheUpdateMethod
|
||||
{
|
||||
[Fact]
|
||||
public void SendsUpdateToCorrectUrl()
|
||||
@@ -67,7 +67,7 @@ namespace Octokit.Tests.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public class TheCreateAsyncMethod
|
||||
public class TheCreateMethod
|
||||
{
|
||||
[Fact]
|
||||
public void SendsCreateToCorrectUrl()
|
||||
@@ -82,7 +82,7 @@ namespace Octokit.Tests.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public class TheDeleteAsyncMethod
|
||||
public class TheDeleteMethod
|
||||
{
|
||||
[Fact]
|
||||
public void DeletesCorrectUrl()
|
||||
|
||||
@@ -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