@@ -8,8 +8,7 @@ public sealed class BranchTests
88    [ Fact ] 
99    public  async  Task  AddProjectInNewBranch ( ) 
1010    { 
11-         using  var  repo  =  await  TestRepository . SetupAsync ( 
12-             static  async  repo => 
11+         using  var  repo  =  await  TestRepository . SetupAsync ( static  async  repo => 
1312            { 
1413                await  repo . CreateSolutionAsync ( "Sample.sln" ,  _ =>  {  } ) ;  // Create an empty solution 
1514            } 
@@ -26,7 +25,12 @@ public async Task AddProjectInNewBranch()
2625
2726        var  executor  =  new  ProjectDiffExecutor ( new  ProjectDiffExecutorOptions ( ) ) ; 
2827
29-         var  result  =  await  executor . GetProjectDiff ( new  FileInfo ( sln ) ,  "master" ,  "feature" ) ; 
28+         var  result  =  await  executor . GetProjectDiff ( 
29+             new  FileInfo ( sln ) , 
30+             "master" , 
31+             "feature" , 
32+             TestContext . Current . CancellationToken 
33+         ) ; 
3034
3135        Assert . Equal ( ProjectDiffExecutionStatus . Success ,  result . Status ) ; 
3236        var  diffProject  =  Assert . Single ( result . Projects ) ; 
@@ -38,8 +42,7 @@ public async Task AddProjectInNewBranch()
3842    [ Fact ] 
3943    public  async  Task  RemoveProjectInNewBranch ( ) 
4044    { 
41-         using  var  res  =  await  TestRepository . SetupAsync ( 
42-             static  async  repo => 
45+         using  var  res  =  await  TestRepository . SetupAsync ( static  async  repo => 
4346            { 
4447                var  sln  =  await  repo . CreateSolutionAsync ( "Sample.sln" ,  sln =>  sln . AddProject ( "Sample/Sample.csproj" ) ) ; 
4548                var  project  =  repo . CreateProject ( 
@@ -60,7 +63,12 @@ await repo.UpdateSolutionAsync(
6063        repo . StageAndCommitAllChanges ( ) ; 
6164
6265        var  executor  =  new  ProjectDiffExecutor ( new  ProjectDiffExecutorOptions ( ) ) ; 
63-         var  result  =  await  executor . GetProjectDiff ( new  FileInfo ( sln ) ,  "master" ,  "feature" ) ; 
66+         var  result  =  await  executor . GetProjectDiff ( 
67+             new  FileInfo ( sln ) , 
68+             "master" , 
69+             "feature" , 
70+             TestContext . Current . CancellationToken 
71+         ) ; 
6472
6573        Assert . Equal ( ProjectDiffExecutionStatus . Success ,  result . Status ) ; 
6674        var  diffProject  =  Assert . Single ( result . Projects ) ; 
@@ -72,8 +80,7 @@ await repo.UpdateSolutionAsync(
7280    [ Fact ] 
7381    public  async  Task  ModifyProjectInNewBranch ( ) 
7482    { 
75-         using  var  res  =  await  TestRepository . SetupAsync ( 
76-             static  async  repo => 
83+         using  var  res  =  await  TestRepository . SetupAsync ( static  async  repo => 
7784            { 
7885                var  sln  =  await  repo . CreateSolutionAsync ( "Sample.sln" ,  sln =>  sln . AddProject ( "Sample/Sample.csproj" ) ) ; 
7986                var  project  =  repo . CreateProject ( 
@@ -90,7 +97,12 @@ public async Task ModifyProjectInNewBranch()
9097        await  repo . WriteFileAsync ( "Sample/MyClass.cs" ,  "// Some new content" ) ; 
9198        repo . StageAndCommitAllChanges ( ) ; 
9299        var  executor  =  new  ProjectDiffExecutor ( new  ProjectDiffExecutorOptions ( ) ) ; 
93-         var  result  =  await  executor . GetProjectDiff ( new  FileInfo ( sln ) ,  "master" ,  "feature" ) ; 
100+         var  result  =  await  executor . GetProjectDiff ( 
101+             new  FileInfo ( sln ) , 
102+             "master" , 
103+             "feature" , 
104+             TestContext . Current . CancellationToken 
105+         ) ; 
94106
95107        Assert . Equal ( ProjectDiffExecutionStatus . Success ,  result . Status ) ; 
96108        var  diffProject  =  Assert . Single ( result . Projects ) ; 
@@ -101,8 +113,7 @@ public async Task ModifyProjectInNewBranch()
101113    [ Fact ] 
102114    public  async  Task  ModifyProjectInBaseBranch_WithNoMergeBaseOption ( ) 
103115    { 
104-         using  var  res  =  await  TestRepository . SetupAsync ( 
105-             static  async  repo => 
116+         using  var  res  =  await  TestRepository . SetupAsync ( static  async  repo => 
106117            { 
107118                var  sln  =  await  repo . CreateSolutionAsync ( "Sample.sln" ,  sln =>  sln . AddProject ( "Core/Core.csproj" ) ) ; 
108119                var  project  =  repo . CreateProject ( 
@@ -119,7 +130,12 @@ public async Task ModifyProjectInBaseBranch_WithNoMergeBaseOption()
119130        repo . StageAndCommitAllChanges ( ) ; 
120131
121132        var  executor  =  new  ProjectDiffExecutor ( new  ProjectDiffExecutorOptions ( ) ) ; 
122-         var  result  =  await  executor . GetProjectDiff ( new  FileInfo ( sln ) ,  "master" ,  "feature" ) ; 
133+         var  result  =  await  executor . GetProjectDiff ( 
134+             new  FileInfo ( sln ) , 
135+             "master" , 
136+             "feature" , 
137+             TestContext . Current . CancellationToken 
138+         ) ; 
123139
124140        Assert . Equal ( ProjectDiffExecutionStatus . Success ,  result . Status ) ; 
125141        var  diffProject  =  Assert . Single ( result . Projects ) ; 
@@ -131,8 +147,7 @@ public async Task ModifyProjectInBaseBranch_WithNoMergeBaseOption()
131147    [ Fact ] 
132148    public  async  Task  ModifyProjectInBaseBranch_WithMergeBaseOption ( ) 
133149    { 
134-         using  var  res  =  await  TestRepository . SetupAsync ( 
135-             static  async  repo => 
150+         using  var  res  =  await  TestRepository . SetupAsync ( static  async  repo => 
136151            { 
137152                var  sln  =  await  repo . CreateSolutionAsync ( "Sample.sln" ,  sln =>  sln . AddProject ( "Core/Core.csproj" ) ) ; 
138153                var  project  =  repo . CreateProject ( 
@@ -154,7 +169,12 @@ public async Task ModifyProjectInBaseBranch_WithMergeBaseOption()
154169                FindMergeBase  =  true 
155170            } 
156171        ) ; 
157-         var  result  =  await  executor . GetProjectDiff ( new  FileInfo ( sln ) ,  "master" ,  "feature" ) ; 
172+         var  result  =  await  executor . GetProjectDiff ( 
173+             new  FileInfo ( sln ) , 
174+             "master" , 
175+             "feature" , 
176+             TestContext . Current . CancellationToken 
177+         ) ; 
158178
159179        Assert . Equal ( ProjectDiffExecutionStatus . Success ,  result . Status ) ; 
160180        Assert . Empty ( result . Projects ) ; 
0 commit comments