diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-03-04 21:58:08 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-03-17 09:57:45 +0300 |
commit | fc59d2e8657c1e1d706cbc394597dbb737029e82 (patch) | |
tree | 331336a37fdf134efa9784096c99ddac71014024 /LibGit2Sharp.Tests/CheckoutFixture.cs | |
parent | ca7b9be5d38f59d7f552329e3aa8c7f4be0b741a (diff) |
Minor test code cleanup
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CheckoutFixture.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/LibGit2Sharp.Tests/CheckoutFixture.cs b/LibGit2Sharp.Tests/CheckoutFixture.cs index 45326199..77809d58 100644 --- a/LibGit2Sharp.Tests/CheckoutFixture.cs +++ b/LibGit2Sharp.Tests/CheckoutFixture.cs @@ -9,10 +9,10 @@ namespace LibGit2Sharp.Tests { public class CheckoutFixture : BaseFixture { - private static readonly string originalFilePath = "a.txt"; - private static readonly string originalFileContent = "Hello"; - private static readonly string alternateFileContent = "There again"; - private static readonly string otherBranchName = "other"; + private const string originalFilePath = "a.txt"; + private const string originalFileContent = "Hello"; + private const string alternateFileContent = "There again"; + private const string otherBranchName = "other"; [Theory] [InlineData("i-do-numbers")] @@ -319,7 +319,7 @@ namespace LibGit2Sharp.Tests using (var repo = new Repository(repoPath)) { - string relativePath = "a.txt"; + const string relativePath = "a.txt"; Touch(repo.Info.WorkingDirectory, relativePath, "Hello\n"); repo.Stage(relativePath); @@ -451,13 +451,13 @@ namespace LibGit2Sharp.Tests { PopulateBasicRepository(repo); - string relativePathUpdated = "updated.txt"; + const string relativePathUpdated = "updated.txt"; Touch(repo.Info.WorkingDirectory, relativePathUpdated, "updated file text A"); repo.Stage(relativePathUpdated); repo.Commit("Commit initial update file", Constants.Signature, Constants.Signature); // Create conflicting change - string relativePathConflict = "conflict.txt"; + const string relativePathConflict = "conflict.txt"; Touch(repo.Info.WorkingDirectory, relativePathConflict, "conflict file text A"); repo.Stage(relativePathConflict); repo.Commit("Initial commit of conflict.txt and update.txt", Constants.Signature, Constants.Signature); @@ -492,7 +492,7 @@ namespace LibGit2Sharp.Tests Touch(repo.Info.WorkingDirectory, relativePathIgnore, "ignored file"); // Create untracked change - string relativePathUntracked = "untracked.txt"; + const string relativePathUntracked = "untracked.txt"; Touch(repo.Info.WorkingDirectory, relativePathUntracked, "untracked file"); bool wasCalled = false; |