mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 12:42:32 +00:00
aaaand format the code
This commit is contained in:
@@ -19,7 +19,7 @@ namespace Octokit.Tests.Http
|
||||
[Fact]
|
||||
public void ParsesRateLimitsFromHeaders()
|
||||
{
|
||||
var headers = new Dictionary<string, string>
|
||||
var headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "X-RateLimit-Limit", "100" },
|
||||
{ "X-RateLimit-Remaining", "42" },
|
||||
@@ -40,7 +40,7 @@ namespace Octokit.Tests.Http
|
||||
[Fact]
|
||||
public void HandlesInvalidHeaderValues()
|
||||
{
|
||||
var headers = new Dictionary<string, string>
|
||||
var headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "X-RateLimit-Limit", "1234scoobysnacks1234" },
|
||||
{ "X-RateLimit-Remaining", "xanadu" },
|
||||
@@ -78,7 +78,7 @@ namespace Octokit.Tests.Http
|
||||
[Fact]
|
||||
public void CanPopulateObjectFromSerializedData()
|
||||
{
|
||||
var headers = new Dictionary<string, string>
|
||||
var headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "X-RateLimit-Limit", "100" },
|
||||
{ "X-RateLimit-Remaining", "42" },
|
||||
@@ -92,7 +92,7 @@ namespace Octokit.Tests.Http
|
||||
var formatter = new BinaryFormatter();
|
||||
formatter.Serialize(stream, rateLimit);
|
||||
stream.Position = 0;
|
||||
var deserialized = (RateLimit) formatter.Deserialize(stream);
|
||||
var deserialized = (RateLimit)formatter.Deserialize(stream);
|
||||
|
||||
Assert.Equal(100, deserialized.Limit);
|
||||
Assert.Equal(42, deserialized.Remaining);
|
||||
@@ -109,7 +109,6 @@ namespace Octokit.Tests.Http
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new RateLimit(null));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TheMethods
|
||||
|
||||
Reference in New Issue
Block a user