@@ -141,9 +141,9 @@ public void CanCheckoutAnArbitraryCommit(string commitPointer)
141
141
[ Fact ]
142
142
public void CheckoutAddsMissingFilesInWorkingDirectory ( )
143
143
{
144
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
144
+ string repoPath = InitNewRepository ( ) ;
145
145
146
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
146
+ using ( var repo = new Repository ( repoPath ) )
147
147
{
148
148
PopulateBasicRepository ( repo ) ;
149
149
@@ -167,9 +167,9 @@ public void CheckoutAddsMissingFilesInWorkingDirectory()
167
167
[ Fact ]
168
168
public void CheckoutRemovesExtraFilesInWorkingDirectory ( )
169
169
{
170
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
170
+ string repoPath = InitNewRepository ( ) ;
171
171
172
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
172
+ using ( var repo = new Repository ( repoPath ) )
173
173
{
174
174
PopulateBasicRepository ( repo ) ;
175
175
@@ -195,9 +195,9 @@ public void CheckoutRemovesExtraFilesInWorkingDirectory()
195
195
[ Fact ]
196
196
public void CheckoutUpdatesModifiedFilesInWorkingDirectory ( )
197
197
{
198
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
198
+ string repoPath = InitNewRepository ( ) ;
199
199
200
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
200
+ using ( var repo = new Repository ( repoPath ) )
201
201
{
202
202
PopulateBasicRepository ( repo ) ;
203
203
@@ -276,9 +276,9 @@ public void CanForcefullyCheckoutWithConflictingStagedChanges()
276
276
[ Fact ]
277
277
public void CheckingOutWithMergeConflictsThrows ( )
278
278
{
279
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
279
+ string repoPath = InitNewRepository ( ) ;
280
280
281
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
281
+ using ( var repo = new Repository ( repoPath ) )
282
282
{
283
283
Touch ( repo . Info . WorkingDirectory , originalFilePath , "Hello\n " ) ;
284
284
repo . Index . Stage ( originalFilePath ) ;
@@ -319,9 +319,9 @@ public void CheckingOutInABareRepoThrows()
319
319
[ Fact ]
320
320
public void CheckingOutAgainstAnUnbornBranchThrows ( )
321
321
{
322
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
322
+ string repoPath = InitNewRepository ( ) ;
323
323
324
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
324
+ using ( var repo = new Repository ( repoPath ) )
325
325
{
326
326
Assert . True ( repo . Info . IsHeadOrphaned ) ;
327
327
@@ -352,9 +352,9 @@ public void CheckingOutABranchWithBadParamsThrows()
352
352
[ Fact ]
353
353
public void CheckingOutThroughBranchCallsCheckoutProgress ( )
354
354
{
355
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
355
+ string repoPath = InitNewRepository ( ) ;
356
356
357
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
357
+ using ( var repo = new Repository ( repoPath ) )
358
358
{
359
359
PopulateBasicRepository ( repo ) ;
360
360
bool wasCalled = false ;
@@ -369,9 +369,9 @@ public void CheckingOutThroughBranchCallsCheckoutProgress()
369
369
[ Fact ]
370
370
public void CheckingOutThroughRepositoryCallsCheckoutProgress ( )
371
371
{
372
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
372
+ string repoPath = InitNewRepository ( ) ;
373
373
374
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
374
+ using ( var repo = new Repository ( repoPath ) )
375
375
{
376
376
PopulateBasicRepository ( repo ) ;
377
377
bool wasCalled = false ;
@@ -385,9 +385,9 @@ public void CheckingOutThroughRepositoryCallsCheckoutProgress()
385
385
[ Fact ]
386
386
public void CheckoutRetainsUntrackedChanges ( )
387
387
{
388
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
388
+ string repoPath = InitNewRepository ( ) ;
389
389
390
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
390
+ using ( var repo = new Repository ( repoPath ) )
391
391
{
392
392
PopulateBasicRepository ( repo ) ;
393
393
@@ -409,9 +409,9 @@ public void CheckoutRetainsUntrackedChanges()
409
409
[ Fact ]
410
410
public void ForceCheckoutRetainsUntrackedChanges ( )
411
411
{
412
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
412
+ string repoPath = InitNewRepository ( ) ;
413
413
414
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
414
+ using ( var repo = new Repository ( repoPath ) )
415
415
{
416
416
PopulateBasicRepository ( repo ) ;
417
417
@@ -433,9 +433,9 @@ public void ForceCheckoutRetainsUntrackedChanges()
433
433
[ Fact ]
434
434
public void CheckoutRetainsUnstagedChanges ( )
435
435
{
436
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
436
+ string repoPath = InitNewRepository ( ) ;
437
437
438
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
438
+ using ( var repo = new Repository ( repoPath ) )
439
439
{
440
440
PopulateBasicRepository ( repo ) ;
441
441
@@ -457,9 +457,9 @@ public void CheckoutRetainsUnstagedChanges()
457
457
[ Fact ]
458
458
public void CheckoutRetainsStagedChanges ( )
459
459
{
460
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
460
+ string repoPath = InitNewRepository ( ) ;
461
461
462
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
462
+ using ( var repo = new Repository ( repoPath ) )
463
463
{
464
464
PopulateBasicRepository ( repo ) ;
465
465
@@ -482,9 +482,9 @@ public void CheckoutRetainsStagedChanges()
482
482
[ Fact ]
483
483
public void CheckoutRetainsIgnoredChanges ( )
484
484
{
485
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
485
+ string repoPath = InitNewRepository ( ) ;
486
486
487
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
487
+ using ( var repo = new Repository ( repoPath ) )
488
488
{
489
489
PopulateBasicRepository ( repo ) ;
490
490
@@ -509,9 +509,9 @@ public void CheckoutRetainsIgnoredChanges()
509
509
[ Fact ]
510
510
public void ForceCheckoutRetainsIgnoredChanges ( )
511
511
{
512
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
512
+ string repoPath = InitNewRepository ( ) ;
513
513
514
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
514
+ using ( var repo = new Repository ( repoPath ) )
515
515
{
516
516
PopulateBasicRepository ( repo ) ;
517
517
@@ -536,9 +536,9 @@ public void ForceCheckoutRetainsIgnoredChanges()
536
536
[ Fact ]
537
537
public void CheckoutBranchSnapshot ( )
538
538
{
539
- SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
539
+ string repoPath = InitNewRepository ( ) ;
540
540
541
- using ( var repo = Repository . Init ( scd . DirectoryPath ) )
541
+ using ( var repo = new Repository ( repoPath ) )
542
542
{
543
543
PopulateBasicRepository ( repo ) ;
544
544
0 commit comments