diff --git a/.gitignore b/.gitignore
index 64fac8693e..1128a7f633 100644
--- a/.gitignore
+++ b/.gitignore
@@ -74,6 +74,7 @@ packaging/
tools/FAKE.Core
tools/SourceLink.Fake
tools/xunit.runner.console
+tools/Octokit.CodeFormatter
*.ncrunch*
*.GhostDoc.xml
diff --git a/Octokit.Reactive/Clients/IObservableCommitsClient.cs b/Octokit.Reactive/Clients/IObservableCommitsClient.cs
index 22d9b00382..a33beb1cb7 100644
--- a/Octokit.Reactive/Clients/IObservableCommitsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableCommitsClient.cs
@@ -29,6 +29,6 @@ public interface IObservableCommitsClient
/// The name of the repository
/// The commit to create
///
- IObservable Create(string owner, string name, NewCommit commit);
+ IObservable Create(string owner, string name, NewCommit commit);
}
}
\ No newline at end of file
diff --git a/Octokit.Reactive/Clients/IObservableOrganizationsClient.cs b/Octokit.Reactive/Clients/IObservableOrganizationsClient.cs
index 3f01d2cee0..f36bb44a67 100644
--- a/Octokit.Reactive/Clients/IObservableOrganizationsClient.cs
+++ b/Octokit.Reactive/Clients/IObservableOrganizationsClient.cs
@@ -9,7 +9,7 @@ public interface IObservableOrganizationsClient
/// Returns a client to manage members of an organization.
///
IObservableOrganizationMembersClient Member { get; }
-
+
///
/// Returns a client to manage teams for an organization.
///
diff --git a/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs b/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
index 2369ce0faa..c1d8537492 100644
--- a/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
+++ b/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
@@ -106,6 +106,5 @@ public interface IObservablePullRequestsClient
/// The pull request number
/// A collection of results
IObservable Files(string owner, string name, int number);
-
}
}
diff --git a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
index 0a81231f4a..7ba8c055c2 100644
--- a/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
+++ b/Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
@@ -29,7 +29,7 @@ public interface IObservableRepositoriesClient
/// Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.
/// An for the operation
IObservable Delete(string owner, string name);
-
+
///
/// Retrieves the for the specified owner and name.
///
@@ -154,7 +154,7 @@ public interface IObservableRepositoriesClient
///
/// See Forks API documentation for more information.
IObservableRepositoryForksClient Forks { get; }
-
+
///
/// Client for GitHub's Repository Contents API.
///
diff --git a/Octokit.Reactive/Clients/IObservableWatchedClient.cs b/Octokit.Reactive/Clients/IObservableWatchedClient.cs
index f64e8ea0f9..a3fa7a070d 100644
--- a/Octokit.Reactive/Clients/IObservableWatchedClient.cs
+++ b/Octokit.Reactive/Clients/IObservableWatchedClient.cs
@@ -54,7 +54,7 @@ public interface IObservableWatchedClient
/// The owner of the repository to unstar
/// The name of the repository to unstar
/// A bool representing the success of the operation
- [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Unwatch",
+ [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unwatch",
Justification = "Unwatch is consistent with the GitHub website")]
IObservable UnwatchRepo(string owner, string name);
}
diff --git a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs
index 2a4d196173..bbe991c1c1 100644
--- a/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableAuthorizationsClient.cs
@@ -8,7 +8,7 @@ namespace Octokit.Reactive
public class ObservableAuthorizationsClient : IObservableAuthorizationsClient
{
readonly IAuthorizationsClient _client;
- readonly IConnection _connection;
+ readonly IConnection _connection;
public ObservableAuthorizationsClient(IGitHubClient client)
{
diff --git a/Octokit.Reactive/Clients/ObservableCommitsClient.cs b/Octokit.Reactive/Clients/ObservableCommitsClient.cs
index 0030f83c67..236f10e148 100644
--- a/Octokit.Reactive/Clients/ObservableCommitsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableCommitsClient.cs
@@ -29,7 +29,7 @@ public IObservable Get(string owner, string name, string reference)
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNullOrEmptyString(reference, "reference");
- return _client.Get(owner, name, reference).ToObservable();
+ return _client.Get(owner, name, reference).ToObservable();
}
///
diff --git a/Octokit.Reactive/Clients/ObservableGistsClient.cs b/Octokit.Reactive/Clients/ObservableGistsClient.cs
index c5e2dd5fbe..9d63c775ba 100644
--- a/Octokit.Reactive/Clients/ObservableGistsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableGistsClient.cs
@@ -5,7 +5,7 @@
namespace Octokit.Reactive
{
- public class ObservableGistsClient : IObservableGistsClient
+ public class ObservableGistsClient : IObservableGistsClient
{
readonly IGistsClient _client;
readonly IConnection _connection;
diff --git a/Octokit.Reactive/Clients/ObservableMergingClient.cs b/Octokit.Reactive/Clients/ObservableMergingClient.cs
index 4523d2f4cd..f4ef7461b8 100644
--- a/Octokit.Reactive/Clients/ObservableMergingClient.cs
+++ b/Octokit.Reactive/Clients/ObservableMergingClient.cs
@@ -6,7 +6,7 @@ namespace Octokit.Reactive
public class ObservableMergingClient : IObservableMergingClient
{
readonly IMergingClient _client;
-
+
public ObservableMergingClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");
diff --git a/Octokit.Reactive/Clients/ObservableNotificationsClient.cs b/Octokit.Reactive/Clients/ObservableNotificationsClient.cs
index b2f39e0329..025b321664 100644
--- a/Octokit.Reactive/Clients/ObservableNotificationsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableNotificationsClient.cs
@@ -84,7 +84,6 @@ public IObservable MarkAsRead()
public IObservable MarkAsRead(MarkAsReadRequest markAsReadRequest)
{
return _notificationsClient.MarkAsRead(markAsReadRequest).ToObservable();
-
}
///
diff --git a/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs b/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs
index d8c447ccd2..9eef60a024 100644
--- a/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs
+++ b/Octokit.Reactive/Clients/ObservableOrganizationMembersClient.cs
@@ -73,7 +73,7 @@ public IObservable GetAll(string org)
public IObservable GetAll(string org, OrganizationMembersFilter filter)
{
Ensure.ArgumentNotNullOrEmptyString(org, "org");
-
+
return _connection.GetAndFlattenAllPages(ApiUrls.Members(org, filter));
}
diff --git a/Octokit.Reactive/Clients/ObservableOrganizationsClient.cs b/Octokit.Reactive/Clients/ObservableOrganizationsClient.cs
index 04daf29430..64afff9d1e 100644
--- a/Octokit.Reactive/Clients/ObservableOrganizationsClient.cs
+++ b/Octokit.Reactive/Clients/ObservableOrganizationsClient.cs
@@ -19,7 +19,7 @@ public ObservableOrganizationsClient(IGitHubClient client)
Member = new ObservableOrganizationMembersClient(client);
Team = new ObservableTeamsClient(client);
-
+
_client = client.Organization;
_connection = client.Connection;
}
diff --git a/Octokit.Reactive/Clients/ObservablePullRequestsClient.cs b/Octokit.Reactive/Clients/ObservablePullRequestsClient.cs
index a4f1a3449f..b62929d6b4 100644
--- a/Octokit.Reactive/Clients/ObservablePullRequestsClient.cs
+++ b/Octokit.Reactive/Clients/ObservablePullRequestsClient.cs
@@ -117,7 +117,7 @@ public IObservable Update(string owner, string name, int number, Pu
/// The pull request number
/// A instance describing a pull request merge
/// A result
- public IObservable Merge(string owner, string name, int number, MergePullRequest mergePullRequest)
+ public IObservable Merge(string owner, string name, int number, MergePullRequest mergePullRequest)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
@@ -134,7 +134,7 @@ public IObservable Merge(string owner, string name, int number
/// The name of the repository
/// The pull request number
/// A result - true if the pull request has been merged, false otherwise
- public IObservable Merged(string owner, string name, int number)
+ public IObservable Merged(string owner, string name, int number)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
diff --git a/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs b/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
index 144f97edd7..9e7ac33c7d 100644
--- a/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
+++ b/Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
@@ -16,7 +16,7 @@ public class ObservableRepositoriesClient : IObservableRepositoriesClient
public ObservableRepositoriesClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");
-
+
_client = client.Repository;
_connection = client.Connection;
CommitStatus = new ObservableCommitStatusClient(client);
@@ -288,7 +288,7 @@ public IObservable GetAllContributors(string owner, strin
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
-
+
var endpoint = ApiUrls.RepositoryContributors(owner, name);
var parameters = new Dictionary();
if (includeAnonymous)
@@ -330,7 +330,7 @@ public IObservable GetAllTeams(string owner, string name)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
-
+
var endpoint = ApiUrls.RepositoryTeams(owner, name);
return _connection.GetAndFlattenAllPages(endpoint);
}
diff --git a/Octokit.Reactive/Clients/ObservableSshKeysClient.cs b/Octokit.Reactive/Clients/ObservableSshKeysClient.cs
index 2d09d92c31..5b4b340e8a 100644
--- a/Octokit.Reactive/Clients/ObservableSshKeysClient.cs
+++ b/Octokit.Reactive/Clients/ObservableSshKeysClient.cs
@@ -17,7 +17,7 @@ public class ObservableSshKeysClient : IObservableSshKeysClient
public ObservableSshKeysClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");
-
+
_client = client.SshKey;
_connection = client.Connection;
}
diff --git a/Octokit.Reactive/Clients/ObservableTreesClient.cs b/Octokit.Reactive/Clients/ObservableTreesClient.cs
index e3c45d855f..776e4fad1f 100644
--- a/Octokit.Reactive/Clients/ObservableTreesClient.cs
+++ b/Octokit.Reactive/Clients/ObservableTreesClient.cs
@@ -3,7 +3,6 @@
namespace Octokit.Reactive
{
-
public class ObservableTreesClient : IObservableTreesClient
{
readonly ITreesClient _client;
diff --git a/Octokit.Reactive/Helpers/ObservableExtensions.cs b/Octokit.Reactive/Helpers/ObservableExtensions.cs
index ad3b1435d0..7a96759c95 100644
--- a/Octokit.Reactive/Helpers/ObservableExtensions.cs
+++ b/Octokit.Reactive/Helpers/ObservableExtensions.cs
@@ -40,7 +40,7 @@ internal static IObservable Expand(
var outGate = new object();
var q = new Queue>();
var m = new SerialDisposable();
- var d = new CompositeDisposable {m};
+ var d = new CompositeDisposable { m };
var activeCount = 0;
var isAcquired = false;
diff --git a/Octokit.Reactive/ObservableGitHubClient.cs b/Octokit.Reactive/ObservableGitHubClient.cs
index 4970eebc9c..c2230d2fd0 100644
--- a/Octokit.Reactive/ObservableGitHubClient.cs
+++ b/Octokit.Reactive/ObservableGitHubClient.cs
@@ -74,7 +74,7 @@ public IConnection Connection
///
/// representing the information returned as part of an Api call
public ApiInfo GetLastApiInfo()
- {
+ {
return _gitHubClient.Connection.GetLastApiInfo();
}
}
diff --git a/Octokit.Tests.Conventions/Exception/InterfaceHasAdditionalMethodsException.cs b/Octokit.Tests.Conventions/Exception/InterfaceHasAdditionalMethodsException.cs
index 78ea2daa7c..cf68516212 100644
--- a/Octokit.Tests.Conventions/Exception/InterfaceHasAdditionalMethodsException.cs
+++ b/Octokit.Tests.Conventions/Exception/InterfaceHasAdditionalMethodsException.cs
@@ -8,13 +8,16 @@ namespace Octokit.Tests.Conventions
public class InterfaceHasAdditionalMethodsException : Exception
{
public InterfaceHasAdditionalMethodsException(Type type, IEnumerable methodsMissingOnReactiveClient)
- : base(CreateMessage(type, methodsMissingOnReactiveClient)) { }
+ : base(CreateMessage(type, methodsMissingOnReactiveClient))
+ { }
public InterfaceHasAdditionalMethodsException(Type type, IEnumerable methodsMissingOnReactiveClient, Exception innerException)
- : base(CreateMessage(type, methodsMissingOnReactiveClient), innerException) { }
+ : base(CreateMessage(type, methodsMissingOnReactiveClient), innerException)
+ { }
protected InterfaceHasAdditionalMethodsException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateMessage(Type type, IEnumerable methods)
{
diff --git a/Octokit.Tests.Conventions/Exception/InterfaceMethodsMismatchException.cs b/Octokit.Tests.Conventions/Exception/InterfaceMethodsMismatchException.cs
index 7a422d4926..2265f5ec88 100644
--- a/Octokit.Tests.Conventions/Exception/InterfaceMethodsMismatchException.cs
+++ b/Octokit.Tests.Conventions/Exception/InterfaceMethodsMismatchException.cs
@@ -8,13 +8,16 @@ namespace Octokit.Tests.Conventions
public class InterfaceMethodsMismatchException : Exception
{
public InterfaceMethodsMismatchException(Type observableType, Type clientInterface)
- : base(CreateMessage(observableType, clientInterface)) { }
+ : base(CreateMessage(observableType, clientInterface))
+ { }
- public InterfaceMethodsMismatchException(Type type,Type clientInterface, Exception innerException)
- : base(CreateMessage(type, clientInterface), innerException) { }
+ public InterfaceMethodsMismatchException(Type type, Type clientInterface, Exception innerException)
+ : base(CreateMessage(type, clientInterface), innerException)
+ { }
protected InterfaceMethodsMismatchException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string Format(ParameterInfo parameterInfo)
{
diff --git a/Octokit.Tests.Conventions/Exception/InterfaceMissingMethodsException.cs b/Octokit.Tests.Conventions/Exception/InterfaceMissingMethodsException.cs
index 4d16288a27..e9d701f276 100644
--- a/Octokit.Tests.Conventions/Exception/InterfaceMissingMethodsException.cs
+++ b/Octokit.Tests.Conventions/Exception/InterfaceMissingMethodsException.cs
@@ -8,13 +8,16 @@ namespace Octokit.Tests.Conventions
public class InterfaceMissingMethodsException : Exception
{
public InterfaceMissingMethodsException(Type type, IEnumerable methodsMissingOnReactiveClient)
- : base(CreateMessage(type, methodsMissingOnReactiveClient)) { }
+ : base(CreateMessage(type, methodsMissingOnReactiveClient))
+ { }
public InterfaceMissingMethodsException(Type type, IEnumerable methodsMissingOnReactiveClient, Exception innerException)
- : base(CreateMessage(type, methodsMissingOnReactiveClient), innerException) { }
+ : base(CreateMessage(type, methodsMissingOnReactiveClient), innerException)
+ { }
protected InterfaceMissingMethodsException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateMessage(Type type, IEnumerable methods)
{
diff --git a/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs b/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs
index 3a4283310d..fe8586c23c 100644
--- a/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs
+++ b/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs
@@ -8,18 +8,20 @@ public class InterfaceNotFoundException : Exception
public InterfaceNotFoundException() { }
public InterfaceNotFoundException(string type)
- : base(CreateMessage(type)) { }
+ : base(CreateMessage(type))
+ { }
public InterfaceNotFoundException(string type, Exception innerException)
- : base(CreateMessage(type), innerException) { }
+ : base(CreateMessage(type), innerException)
+ { }
protected InterfaceNotFoundException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateMessage(string type)
{
return String.Format("Could not find the interface {0}. Add this to the Octokit.Reactive project", type);
}
-
}
}
diff --git a/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayAttributeValueException.cs b/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayAttributeValueException.cs
index 9f25afdea4..58476e77fe 100644
--- a/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayAttributeValueException.cs
+++ b/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayAttributeValueException.cs
@@ -5,7 +5,8 @@ namespace Octokit.Tests.Conventions
public class InvalidDebuggerDisplayAttributeValueException : Exception
{
public InvalidDebuggerDisplayAttributeValueException(Type modelType, string value)
- : base (CreateMessage(modelType, value)) { }
+ : base(CreateMessage(modelType, value))
+ { }
static string CreateMessage(Type modelType, string value)
{
diff --git a/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayReturnType.cs b/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayReturnType.cs
index 3f9fab9046..c8932a39d3 100644
--- a/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayReturnType.cs
+++ b/Octokit.Tests.Conventions/Exception/InvalidDebuggerDisplayReturnType.cs
@@ -5,7 +5,8 @@ namespace Octokit.Tests.Conventions
public class InvalidDebuggerDisplayReturnType : Exception
{
public InvalidDebuggerDisplayReturnType(Type modelType, Type propertyType)
- : base (CreateMessage(modelType, propertyType)) { }
+ : base(CreateMessage(modelType, propertyType))
+ { }
static string CreateMessage(Type modelType, Type propertyType)
{
diff --git a/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayAttributeException.cs b/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayAttributeException.cs
index 47e94e295b..9861ae7618 100644
--- a/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayAttributeException.cs
+++ b/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayAttributeException.cs
@@ -5,6 +5,7 @@ namespace Octokit.Tests.Conventions
public class MissingDebuggerDisplayAttributeException : Exception
{
public MissingDebuggerDisplayAttributeException(Type modelType)
- : base (string.Format("Model type '{0}' is missing the DebuggerDisplayAttribute.", modelType.FullName)) { }
+ : base(string.Format("Model type '{0}' is missing the DebuggerDisplayAttribute.", modelType.FullName))
+ { }
}
}
\ No newline at end of file
diff --git a/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayPropertyException.cs b/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayPropertyException.cs
index 0587364e5b..2a378d5d25 100644
--- a/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayPropertyException.cs
+++ b/Octokit.Tests.Conventions/Exception/MissingDebuggerDisplayPropertyException.cs
@@ -5,6 +5,7 @@ namespace Octokit.Tests.Conventions
public class MissingDebuggerDisplayPropertyException : Exception
{
public MissingDebuggerDisplayPropertyException(Type modelType)
- : base (string.Format("Model type '{0}' is missing the DebuggerDisplay property.", modelType.FullName)) { }
+ : base(string.Format("Model type '{0}' is missing the DebuggerDisplay property.", modelType.FullName))
+ { }
}
}
\ No newline at end of file
diff --git a/Octokit.Tests.Conventions/Exception/MutableModelPropertiesException.cs b/Octokit.Tests.Conventions/Exception/MutableModelPropertiesException.cs
index 66d23a42b0..89e64b0408 100644
--- a/Octokit.Tests.Conventions/Exception/MutableModelPropertiesException.cs
+++ b/Octokit.Tests.Conventions/Exception/MutableModelPropertiesException.cs
@@ -8,7 +8,8 @@ namespace Octokit.Tests.Conventions
public class MutableModelPropertiesException : Exception
{
public MutableModelPropertiesException(Type modelType, IEnumerable mutableProperties)
- : base (CreateMessage(modelType, mutableProperties)) { }
+ : base(CreateMessage(modelType, mutableProperties))
+ { }
static string CreateMessage(Type modelType, IEnumerable mutableProperties)
{
diff --git a/Octokit.Tests.Conventions/Exception/PaginationGetAllMethodNameMismatchException.cs b/Octokit.Tests.Conventions/Exception/PaginationGetAllMethodNameMismatchException.cs
index 8c20067ee9..f78822c4d3 100644
--- a/Octokit.Tests.Conventions/Exception/PaginationGetAllMethodNameMismatchException.cs
+++ b/Octokit.Tests.Conventions/Exception/PaginationGetAllMethodNameMismatchException.cs
@@ -10,7 +10,8 @@ namespace Octokit.Tests.Conventions
public class PaginationGetAllMethodNameMismatchException : Exception
{
public PaginationGetAllMethodNameMismatchException(Type type, IEnumerable methods)
- : base(CreateMessage(type, methods)) { }
+ : base(CreateMessage(type, methods))
+ { }
static string CreateMessage(Type type, IEnumerable methods)
{
diff --git a/Octokit.Tests.Conventions/Exception/ParameterCountMismatchException.cs b/Octokit.Tests.Conventions/Exception/ParameterCountMismatchException.cs
index 24b165f33f..f83e0fc6b4 100644
--- a/Octokit.Tests.Conventions/Exception/ParameterCountMismatchException.cs
+++ b/Octokit.Tests.Conventions/Exception/ParameterCountMismatchException.cs
@@ -9,13 +9,16 @@ namespace Octokit.Tests.Conventions
public class ParameterCountMismatchException : Exception
{
public ParameterCountMismatchException(MethodInfo method, IEnumerable expected, IEnumerable actual)
- : base(CreateMessage(method, expected, actual)) { }
+ : base(CreateMessage(method, expected, actual))
+ { }
public ParameterCountMismatchException(MethodInfo method, IEnumerable expected, IEnumerable actual, Exception innerException)
- : base(CreateMessage(method, expected, actual), innerException) { }
+ : base(CreateMessage(method, expected, actual), innerException)
+ { }
protected ParameterCountMismatchException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateMethodSignature(IEnumerable parameters)
{
diff --git a/Octokit.Tests.Conventions/Exception/ParameterMismatchException.cs b/Octokit.Tests.Conventions/Exception/ParameterMismatchException.cs
index 88009960e3..0e9783d13b 100644
--- a/Octokit.Tests.Conventions/Exception/ParameterMismatchException.cs
+++ b/Octokit.Tests.Conventions/Exception/ParameterMismatchException.cs
@@ -7,13 +7,16 @@ namespace Octokit.Tests.Conventions
public class ParameterMismatchException : Exception
{
public ParameterMismatchException(MethodInfo method, int position, ParameterInfo expected, ParameterInfo actual)
- : base(CreateMessage(method, position, expected, actual)) { }
+ : base(CreateMessage(method, position, expected, actual))
+ { }
public ParameterMismatchException(MethodInfo method, int position, ParameterInfo expected, ParameterInfo actual, Exception innerException)
- : base(CreateMessage(method, position, expected, actual), innerException) { }
+ : base(CreateMessage(method, position, expected, actual), innerException)
+ { }
protected ParameterMismatchException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateParameterSignature(ParameterInfo parameter)
{
diff --git a/Octokit.Tests.Conventions/Exception/ReturnValueMismatchException.cs b/Octokit.Tests.Conventions/Exception/ReturnValueMismatchException.cs
index 3bc97e4e0d..38fbdef532 100644
--- a/Octokit.Tests.Conventions/Exception/ReturnValueMismatchException.cs
+++ b/Octokit.Tests.Conventions/Exception/ReturnValueMismatchException.cs
@@ -7,17 +7,20 @@ namespace Octokit.Tests.Conventions
public class ReturnValueMismatchException : Exception
{
public ReturnValueMismatchException(MethodInfo method, Type expected, Type actual)
- : base(CreateMessage(method, expected, actual)) { }
+ : base(CreateMessage(method, expected, actual))
+ { }
public ReturnValueMismatchException(MethodInfo method, Type expected, Type actual, Exception innerException)
- : base(CreateMessage(method, expected, actual), innerException) { }
+ : base(CreateMessage(method, expected, actual), innerException)
+ { }
protected ReturnValueMismatchException(SerializationInfo info, StreamingContext context)
- : base(info, context) { }
+ : base(info, context)
+ { }
static string CreateMessage(MethodInfo method, Type expected, Type actual)
{
- return String.Format("Return value for {0}.{1} must be \"{2}\" but is \"{3}\"", method.DeclaringType.Name, method.Name, expected, actual);
+ return String.Format("Return value for {0}.{1} must be \"{2}\" but is \"{3}\"", method.DeclaringType.Name, method.Name, expected, actual);
}
}
}
\ No newline at end of file
diff --git a/Octokit.Tests.Conventions/SyncObservableClients.cs b/Octokit.Tests.Conventions/SyncObservableClients.cs
index b222a51764..3d00599286 100644
--- a/Octokit.Tests.Conventions/SyncObservableClients.cs
+++ b/Octokit.Tests.Conventions/SyncObservableClients.cs
@@ -38,7 +38,7 @@ public void CheckObservableClients(Type clientInterface)
}
int index = 0;
- foreach(var mainMethod in mainMethods)
+ foreach (var mainMethod in mainMethods)
{
var observableMethod = observableMethods[index];
AssertEx.WithMessage(() => CheckMethod(mainMethod, observableMethod), "Invalid signature for " + observableMethod);
@@ -69,7 +69,7 @@ private static void CheckReturnValue(MethodInfo mainMethod, MethodInfo observabl
private static Type GetObservableExpectedType(Type mainType)
{
var typeInfo = mainType.GetTypeInfo();
- switch(typeInfo.TypeCategory)
+ switch (typeInfo.TypeCategory)
{
case TypeCategory.ClientInterface:
// client interface - IClient => IObservableClient
@@ -78,7 +78,7 @@ private static Type GetObservableExpectedType(Type mainType)
// void - Task => IObservable
return typeof(IObservable);
case TypeCategory.GenericTask:
- // single item - Task => IObservable
+ // single item - Task => IObservable
case TypeCategory.ReadOnlyList:
// list - Task> => IObservable
return typeof(IObservable<>).MakeGenericType(typeInfo.Type);
@@ -100,7 +100,7 @@ private static void CheckParameters(MethodInfo mainMethod, MethodInfo observable
}
int index = 0;
- foreach(var mainParameter in mainParameters)
+ foreach (var mainParameter in mainParameters)
{
var observableParameter = observableParameters[index];
if (mainParameter.Name != observableParameter.Name)
diff --git a/Octokit.Tests.Conventions/TypeExtensions.cs b/Octokit.Tests.Conventions/TypeExtensions.cs
index be3e589b41..7d3ef6d380 100644
--- a/Octokit.Tests.Conventions/TypeExtensions.cs
+++ b/Octokit.Tests.Conventions/TypeExtensions.cs
@@ -35,20 +35,20 @@ public static MethodInfo[] GetMethodsOrdered(this Type type)
public static TypeInfo GetTypeInfo(this Type type)
{
var typeInfo = new TypeInfo { Type = type, TypeCategory = TypeCategory.Other };
- if(type.IsClientInterface())
+ if (type.IsClientInterface())
{
typeInfo.TypeCategory = TypeCategory.ClientInterface;
}
- else if(type.IsTask())
+ else if (type.IsTask())
{
- if(!type.IsGenericType)
+ if (!type.IsGenericType)
{
typeInfo.TypeCategory = TypeCategory.Task;
}
else
{
var taskResultType = type.GetGenericArgument();
- if(taskResultType.IsList())
+ if (taskResultType.IsList())
{
typeInfo.TypeCategory = TypeCategory.ReadOnlyList;
typeInfo.Type = taskResultType.GetGenericArgument();
@@ -78,7 +78,7 @@ public static Type GetObservableClientInterface(this Type type)
var observableClient = typeof(IObservableEventsClient);
var observableClientName = observableClient.Namespace + "." + ObservablePrefix + type.Name.Substring(RealNameIndex);
var observableInterface = observableClient.Assembly.GetType(observableClientName);
- if(observableInterface == null)
+ if (observableInterface == null)
{
throw new InterfaceNotFoundException(observableClientName);
}
diff --git a/Octokit.Tests.Integration/Clients/AuthorizationClientTests.cs b/Octokit.Tests.Integration/Clients/AuthorizationClientTests.cs
index 213326e124..5a3b741d48 100644
--- a/Octokit.Tests.Integration/Clients/AuthorizationClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/AuthorizationClientTests.cs
@@ -199,9 +199,9 @@ public async Task CanRevokeAllApplicationAuthentications()
var applicationClient = Helper.GetAuthenticatedApplicationClient();
await applicationClient.Authorization.RevokeAllApplicationAuthentications(Helper.ClientId);
- Assert.ThrowsAsync(async () =>
+ Assert.ThrowsAsync(async () =>
await applicationClient.Authorization.CheckApplicationAuthentication(Helper.ClientId, token1.Token));
- Assert.ThrowsAsync(async () =>
+ Assert.ThrowsAsync(async () =>
await applicationClient.Authorization.CheckApplicationAuthentication(Helper.ClientId, token2.Token));
Assert.ThrowsAsync(() => github.Authorization.Get(token1.Id));
diff --git a/Octokit.Tests.Integration/Clients/CommitsClientTests.cs b/Octokit.Tests.Integration/Clients/CommitsClientTests.cs
index 2e781c87c3..96559fb33b 100644
--- a/Octokit.Tests.Integration/Clients/CommitsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/CommitsClientTests.cs
@@ -14,7 +14,7 @@ public async Task CanCreateAndRetrieveCommit()
{
var github = Helper.GetAuthenticatedClient();
var fixture = github.GitDatabase.Commit;
-
+
using (var context = await github.CreateRepositoryContext("public-repo"))
{
var owner = context.Repository.Owner.Login;
diff --git a/Octokit.Tests.Integration/Clients/DeploymentStatusClientTests.cs b/Octokit.Tests.Integration/Clients/DeploymentStatusClientTests.cs
index 302c83508f..223457bddd 100644
--- a/Octokit.Tests.Integration/Clients/DeploymentStatusClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/DeploymentStatusClientTests.cs
@@ -37,11 +37,11 @@ public DeploymentStatusClientTests()
var treeResult = github.GitDatabase.Tree.Create(_context.RepositoryOwner, _context.RepositoryName, newTree).Result;
var newCommit = new NewCommit("test-commit", treeResult.Sha);
-
+
var commit = github.GitDatabase.Commit.Create(_context.RepositoryOwner, _context.RepositoryName, newCommit).Result;
var newDeployment = new NewDeployment(commit.Sha) { AutoMerge = false };
- _deployment = _deploymentsClient.Create(_context.RepositoryOwner, _context.RepositoryName, newDeployment).Result;
+ _deployment = _deploymentsClient.Create(_context.RepositoryOwner, _context.RepositoryName, newDeployment).Result;
}
[IntegrationTest]
diff --git a/Octokit.Tests.Integration/Clients/DeploymentsClientTests.cs b/Octokit.Tests.Integration/Clients/DeploymentsClientTests.cs
index 46945a6ffd..fc22f8d1fe 100644
--- a/Octokit.Tests.Integration/Clients/DeploymentsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/DeploymentsClientTests.cs
@@ -39,7 +39,7 @@ public DeploymentsClientTests()
var newCommit = new NewCommit("test-commit", treeResult.Sha);
_commit = github.GitDatabase.Commit.Create(_context.RepositoryOwner, _context.RepositoryName, newCommit).Result;
}
-
+
[IntegrationTest]
public async Task CanCreateDeployment()
{
diff --git a/Octokit.Tests.Integration/Clients/EventsClientTests.cs b/Octokit.Tests.Integration/Clients/EventsClientTests.cs
index 2802bbff72..10805a7677 100644
--- a/Octokit.Tests.Integration/Clients/EventsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/EventsClientTests.cs
@@ -21,11 +21,11 @@ public async Task ReturnsACollection()
public class EventPayloads
{
- readonly IEnumerable _events;
+ readonly IEnumerable _events;
public EventPayloads()
{
var github = Helper.GetAuthenticatedClient();
- _events = github.Activity.Events.GetAllUserPerformed("shiftkey").Result;
+ _events = github.Activity.Events.GetAllUserPerformed("shiftkey").Result;
}
[IntegrationTest]
diff --git a/Octokit.Tests.Integration/Clients/FollowersClientTests.cs b/Octokit.Tests.Integration/Clients/FollowersClientTests.cs
index 99d382be6f..6ced87945f 100644
--- a/Octokit.Tests.Integration/Clients/FollowersClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/FollowersClientTests.cs
@@ -35,7 +35,7 @@ public async Task ReturnsUsersTheUserIsFollowing()
Assert.NotNull(following);
Assert.NotEmpty(following);
}
-
+
[IntegrationTest]
public async Task ReturnsUsersFollowingTheUser()
{
diff --git a/Octokit.Tests.Integration/Clients/GistsClientTests.cs b/Octokit.Tests.Integration/Clients/GistsClientTests.cs
index 56ef19f1f6..c99c53c02b 100644
--- a/Octokit.Tests.Integration/Clients/GistsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/GistsClientTests.cs
@@ -79,7 +79,7 @@ public async Task CanForkAGist()
await _fixture.Delete(forkedGist.Id);
}
- [IntegrationTest(Skip="OH GOD THIS TEST IS INSANE AND I DON'T KNOW WHY I DID THIS")]
+ [IntegrationTest(Skip = "OH GOD THIS TEST IS INSANE AND I DON'T KNOW WHY I DID THIS")]
public async Task CanListGists()
{
// Time is tricky between local and remote, be lenient
diff --git a/Octokit.Tests.Integration/Clients/GitHubClientTests.cs b/Octokit.Tests.Integration/Clients/GitHubClientTests.cs
index 5cc9ce9027..424e2b2643 100644
--- a/Octokit.Tests.Integration/Clients/GitHubClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/GitHubClientTests.cs
@@ -23,7 +23,7 @@ public async Task CanRetrieveLastApiInfoWithEtag()
using (var context = await github.CreateRepositoryContext(new NewRepository(repoName)))
{
var createdRepository = context.Repository;
-
+
var result = github.GetLastApiInfo();
Assert.True(result.Links.Count == 0);
@@ -75,6 +75,5 @@ public async Task CanRetrieveLastApiInfoAcceptedOauth()
Assert.True(result.RateLimit.Remaining > -1);
Assert.NotNull(result.RateLimit.Reset);
}
-
}
}
diff --git a/Octokit.Tests.Integration/Clients/IssuesClientTests.cs b/Octokit.Tests.Integration/Clients/IssuesClientTests.cs
index 2193a1c090..f930d32285 100644
--- a/Octokit.Tests.Integration/Clients/IssuesClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/IssuesClientTests.cs
@@ -86,11 +86,11 @@ await _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, cl
new IssueUpdate { State = ItemState.Closed });
var issues = await _issuesClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName,
- new RepositoryIssueRequest {SortDirection = SortDirection.Ascending});
+ new RepositoryIssueRequest { SortDirection = SortDirection.Ascending });
Assert.Equal(3, issues.Count);
Assert.Equal("A test issue1", issues[0].Title);
- Assert.Equal("A test issue2", issues[1].Title);
+ Assert.Equal("A test issue2", issues[1].Title);
Assert.Equal("A test issue3", issues[2].Title);
}
@@ -165,7 +165,7 @@ public async Task CanFilterByAssigned()
Assert.Equal(2, allIssues.Count);
- var assignedIssues = await _issuesClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName,
+ var assignedIssues = await _issuesClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName,
new RepositoryIssueRequest { Assignee = _context.RepositoryOwner });
Assert.Equal(1, assignedIssues.Count);
diff --git a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
index 3d6fea88e3..68c3c2f6bb 100644
--- a/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/IssuesEventsClientTests.cs
@@ -29,7 +29,7 @@ public async Task CanListEventInfoForAnIssue()
{
var newIssue = new NewIssue("a test issue") { Body = "A new unassigned issue" };
var issue = await _issuesClient.Create(_context.RepositoryOwner, _context.RepositoryName, newIssue);
-
+
var issueEventInfo = await _issuesEventsClientClient.GetAllForIssue(_context.RepositoryOwner, _context.RepositoryName, issue.Number);
Assert.Empty(issueEventInfo);
@@ -37,7 +37,7 @@ public async Task CanListEventInfoForAnIssue()
.Result;
Assert.NotNull(closed);
issueEventInfo = await _issuesEventsClientClient.GetAllForIssue(_context.RepositoryOwner, _context.RepositoryName, issue.Number);
-
+
Assert.Equal(1, issueEventInfo.Count);
Assert.Equal(EventInfoState.Closed, issueEventInfo[0].Event);
}
@@ -53,7 +53,7 @@ public async Task CanListIssueEventsForARepository()
Thread.Sleep(1000);
var issue2 = await _issuesClient.Create(_context.RepositoryOwner, _context.RepositoryName, newIssue2);
Thread.Sleep(1000);
-
+
// close and open issue1
var closed1 = _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, issue1.Number, new IssueUpdate { State = ItemState.Closed })
.Result;
@@ -66,7 +66,7 @@ public async Task CanListIssueEventsForARepository()
var closed2 = _issuesClient.Update(_context.RepositoryOwner, _context.RepositoryName, issue2.Number, new IssueUpdate { State = ItemState.Closed })
.Result;
Assert.NotNull(closed2);
-
+
var issueEvents = await _issuesEventsClientClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName);
Assert.Equal(3, issueEvents.Count);
diff --git a/Octokit.Tests.Integration/Clients/IssuesLabelsClientTests.cs b/Octokit.Tests.Integration/Clients/IssuesLabelsClientTests.cs
index 16900b98e7..e6e2e8a6e8 100644
--- a/Octokit.Tests.Integration/Clients/IssuesLabelsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/IssuesLabelsClientTests.cs
@@ -15,7 +15,7 @@ public IssuesLabelsClientTests()
{
var github = Helper.GetAuthenticatedClient();
- _issuesLabelsClient= github.Issue.Labels;
+ _issuesLabelsClient = github.Issue.Labels;
_issuesClient = github.Issue;
var repoName = Helper.MakeNameWithTimestamp("public-repo");
diff --git a/Octokit.Tests.Integration/Clients/MergingClientTests.cs b/Octokit.Tests.Integration/Clients/MergingClientTests.cs
index c746afb075..c3f393f099 100644
--- a/Octokit.Tests.Integration/Clients/MergingClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/MergingClientTests.cs
@@ -11,9 +11,9 @@ public class MergingClientTests : IDisposable
private readonly IGitHubClient _github;
private readonly IMergingClient _fixture;
private readonly RepositoryContext _context;
-
+
const string branchName = "my-branch";
-
+
public MergingClientTests()
{
_github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
diff --git a/Octokit.Tests.Integration/Clients/MilestonesClientTests.cs b/Octokit.Tests.Integration/Clients/MilestonesClientTests.cs
index b4cc1a1a0e..f5a58f4a32 100644
--- a/Octokit.Tests.Integration/Clients/MilestonesClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/MilestonesClientTests.cs
@@ -37,7 +37,7 @@ public async Task CanRetrieveOneMilestone()
public async Task CanListEmptyMilestones()
{
var milestones = await _milestonesClient.GetAllForRepository(_context.RepositoryOwner, _context.RepositoryName);
-
+
Assert.Empty(milestones);
}
diff --git a/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs b/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs
index bff700dc03..b13fd3a9fe 100644
--- a/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/MiscellaneousClientTests.cs
@@ -100,7 +100,6 @@ public async Task CanRetrieveResourceRateLimits()
Assert.True(result.Rate.Remaining <= result.Rate.Limit);
Assert.True(result.Resources.Search.ResetAsUtcEpochSeconds > 0);
Assert.NotNull(result.Resources.Search.Reset);
-
}
}
diff --git a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
index 45011f52c2..53d891e6b4 100644
--- a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs
@@ -149,7 +149,7 @@ public async Task CanGetForRepositoryAscendingSort()
var pullRequest = await CreatePullRequest(_context);
const int position = 1;
- var commentsToCreate = new [] { "Comment One", "Comment Two", "Comment Three" };
+ var commentsToCreate = new[] { "Comment One", "Comment Two", "Comment Three" };
await CreateComments(commentsToCreate, position, _context.RepositoryName, pullRequest.Sha, pullRequest.Number);
@@ -164,7 +164,7 @@ public async Task CanGetForRepositoryDescendingSort()
var pullRequest = await CreatePullRequest(_context);
const int position = 1;
- var commentsToCreate = new [] { "Comment One", "Comment Two", "Comment Three", "Comment Four" };
+ var commentsToCreate = new[] { "Comment One", "Comment Two", "Comment Three", "Comment Four" };
await CreateComments(commentsToCreate, position, _context.RepositoryName, pullRequest.Sha, pullRequest.Number);
diff --git a/Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs
index 003d9bcb63..8e0c438428 100644
--- a/Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs
@@ -308,9 +308,9 @@ public async Task CanBrowseFiles()
{
var expectedFiles = new List
{
- new PullRequestFile(null, "Octokit.Tests.Integration/Clients/ReferencesClientTests.cs", null, 8, 3, 11, null, null, null, null),
- new PullRequestFile(null, "Octokit/Clients/ApiPagination.cs", null, 21, 6, 27, null, null, null, null),
- new PullRequestFile(null, "Octokit/Helpers/IApiPagination.cs", null, 1, 1, 2, null, null, null, null),
+ new PullRequestFile(null, "Octokit.Tests.Integration/Clients/ReferencesClientTests.cs", null, 8, 3, 11, null, null, null, null),
+ new PullRequestFile(null, "Octokit/Clients/ApiPagination.cs", null, 21, 6, 27, null, null, null, null),
+ new PullRequestFile(null, "Octokit/Helpers/IApiPagination.cs", null, 1, 1, 2, null, null, null, null),
new PullRequestFile(null, "Octokit/Http/ApiConnection.cs", null, 1, 1, 2, null, null, null, null)
};
diff --git a/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs b/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
index 920f9ad550..3b6d3de2ac 100644
--- a/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
@@ -65,7 +65,6 @@ public TheEditMethod()
_releaseClient = _github.Release;
_context = _github.CreateRepositoryContext("public-repo").Result;
-
}
[IntegrationTest]
@@ -191,7 +190,7 @@ public async Task CanDownloadAnAsset()
var response = await _github.Connection.Get