@@ -9,10 +9,10 @@ namespace LibGit2Sharp.Tests
9
9
{
10
10
public class CheckoutFixture : BaseFixture
11
11
{
12
- private static readonly string originalFilePath = "a.txt" ;
13
- private static readonly string originalFileContent = "Hello" ;
14
- private static readonly string alternateFileContent = "There again" ;
15
- private static readonly string otherBranchName = "other" ;
12
+ private const string originalFilePath = "a.txt" ;
13
+ private const string originalFileContent = "Hello" ;
14
+ private const string alternateFileContent = "There again" ;
15
+ private const string otherBranchName = "other" ;
16
16
17
17
[ Theory ]
18
18
[ InlineData ( "i-do-numbers" ) ]
@@ -319,7 +319,7 @@ public void CanCancelCheckoutThroughNotifyCallback()
319
319
320
320
using ( var repo = new Repository ( repoPath ) )
321
321
{
322
- string relativePath = "a.txt" ;
322
+ const string relativePath = "a.txt" ;
323
323
Touch ( repo . Info . WorkingDirectory , relativePath , "Hello\n " ) ;
324
324
325
325
repo . Stage ( relativePath ) ;
@@ -451,13 +451,13 @@ public void CheckingOutCallsCheckoutNotify(CheckoutNotifyFlags notifyFlags, stri
451
451
{
452
452
PopulateBasicRepository ( repo ) ;
453
453
454
- string relativePathUpdated = "updated.txt" ;
454
+ const string relativePathUpdated = "updated.txt" ;
455
455
Touch ( repo . Info . WorkingDirectory , relativePathUpdated , "updated file text A" ) ;
456
456
repo . Stage ( relativePathUpdated ) ;
457
457
repo . Commit ( "Commit initial update file" , Constants . Signature , Constants . Signature ) ;
458
458
459
459
// Create conflicting change
460
- string relativePathConflict = "conflict.txt" ;
460
+ const string relativePathConflict = "conflict.txt" ;
461
461
Touch ( repo . Info . WorkingDirectory , relativePathConflict , "conflict file text A" ) ;
462
462
repo . Stage ( relativePathConflict ) ;
463
463
repo . Commit ( "Initial commit of conflict.txt and update.txt" , Constants . Signature , Constants . Signature ) ;
@@ -492,7 +492,7 @@ public void CheckingOutCallsCheckoutNotify(CheckoutNotifyFlags notifyFlags, stri
492
492
Touch ( repo . Info . WorkingDirectory , relativePathIgnore , "ignored file" ) ;
493
493
494
494
// Create untracked change
495
- string relativePathUntracked = "untracked.txt" ;
495
+ const string relativePathUntracked = "untracked.txt" ;
496
496
Touch ( repo . Info . WorkingDirectory , relativePathUntracked , "untracked file" ) ;
497
497
498
498
bool wasCalled = false ;
0 commit comments