mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
Formatting
This commit is contained in:
@@ -53,8 +53,8 @@ public class DeploymentStatusClientTests
|
||||
|
||||
client.GetAll("owner", "name", 1);
|
||||
connection.Received().GetAll<DeploymentStatus>(Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
Arg.Any<string>());
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -65,8 +65,8 @@ public class DeploymentStatusClientTests
|
||||
|
||||
client.GetAll("owner", "name", 1);
|
||||
connection.Received().GetAll<DeploymentStatus>(Arg.Any<Uri>(),
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
expectedAcceptsHeader);
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
expectedAcceptsHeader);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,8 +120,8 @@ public class DeploymentStatusClientTests
|
||||
client.Create("owner", "repo", 1, newDeploymentStatus);
|
||||
|
||||
connection.Received().Post<DeploymentStatus>(Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Any<NewDeploymentStatus>(),
|
||||
Arg.Any<string>());
|
||||
Arg.Any<NewDeploymentStatus>(),
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -133,8 +133,8 @@ public class DeploymentStatusClientTests
|
||||
client.Create("owner", "repo", 1, newDeploymentStatus);
|
||||
|
||||
connection.Received().Post<DeploymentStatus>(Arg.Any<Uri>(),
|
||||
Arg.Any<NewDeploymentStatus>(),
|
||||
expectedAcceptsHeader);
|
||||
Arg.Any<NewDeploymentStatus>(),
|
||||
expectedAcceptsHeader);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ using Xunit.Extensions;
|
||||
|
||||
public class DeploymentsClientTests
|
||||
{
|
||||
const string expectedAcceptsHeader = "application/vnd.github.cannonball-preview+json";
|
||||
const string ExpectedAcceptHeader = "application/vnd.github.cannonball-preview+json";
|
||||
|
||||
public class TheGetAllMethod
|
||||
{
|
||||
@@ -53,8 +53,8 @@ public class DeploymentsClientTests
|
||||
|
||||
client.GetAll("owner", "name");
|
||||
connection.Received().GetAll<Deployment>(Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
Arg.Any<string>());
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -65,8 +65,8 @@ public class DeploymentsClientTests
|
||||
|
||||
client.GetAll("owner", "name");
|
||||
connection.Received().GetAll<Deployment>(Arg.Any<Uri>(),
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
expectedAcceptsHeader);
|
||||
Arg.Any<IDictionary<string, string>>(),
|
||||
ExpectedAcceptHeader);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,8 +116,8 @@ public class DeploymentsClientTests
|
||||
|
||||
client.Create("owner", "name", newDeployment);
|
||||
connection.Received().Post<Deployment>(Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Any<NewDeployment>(),
|
||||
Arg.Any<string>());
|
||||
Arg.Any<NewDeployment>(),
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -128,8 +128,8 @@ public class DeploymentsClientTests
|
||||
|
||||
client.Create("owner", "name", newDeployment);
|
||||
connection.Received().Post<Deployment>(Arg.Any<Uri>(),
|
||||
newDeployment,
|
||||
Arg.Any<string>());
|
||||
newDeployment,
|
||||
Arg.Any<string>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -141,7 +141,7 @@ public class DeploymentsClientTests
|
||||
client.Create("owner", "name", newDeployment);
|
||||
connection.Received().Post<Deployment>(Arg.Any<Uri>(),
|
||||
Arg.Any<NewDeployment>(),
|
||||
Arg.Is(expectedAcceptsHeader));
|
||||
Arg.Is(ExpectedAcceptHeader));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user