@@ -12,7 +12,7 @@ public async Task WritesTheTrioUnderTheProjectsObj()
1212 var source = project . Source ( "SampleTests.cs" ) ;
1313
1414 var patch = Patch ( source , "line one\n line two" , framework : "net10.0" ) ;
15- var written = InlineStaging . Persist ( [ new PendingInline ( patch ) ] ) ;
15+ var written = InlineStaging . Persist ( [ new ( patch ) ] ) ;
1616
1717 await Assert . That ( written ) . IsEqualTo ( 1 ) ;
1818
@@ -32,9 +32,9 @@ await Assert.That(Path.GetFileName(patchFile))
3232 await Assert . That ( read . OriginalValue ) . IsEqualTo ( patch . OriginalValue ) ;
3333 await Assert . That ( read . Framework ) . IsEqualTo ( "net10.0" ) ;
3434
35- await Assert . That ( File . ReadAllText ( files . Single ( _ => _ . EndsWith ( ".received.txt" ) ) ) )
35+ await Assert . That ( await File . ReadAllTextAsync ( files . Single ( _ => _ . EndsWith ( ".received.txt" ) ) ) )
3636 . IsEqualTo ( "line one\n line two" ) ;
37- await Assert . That ( File . ReadAllText ( files . Single ( _ => _ . EndsWith ( ".expected.txt" ) ) ) )
37+ await Assert . That ( await File . ReadAllTextAsync ( files . Single ( _ => _ . EndsWith ( ".expected.txt" ) ) ) )
3838 . IsEqualTo ( "old" ) ;
3939 }
4040
@@ -44,12 +44,12 @@ public async Task PersistingAgainOverwritesRatherThanAccumulates()
4444 using var project = new TempProject ( ) ;
4545 var source = project . Source ( "SampleTests.cs" ) ;
4646
47- InlineStaging . Persist ( [ new PendingInline ( Patch ( source , "first" , framework : "net10.0" ) ) ] ) ;
48- InlineStaging . Persist ( [ new PendingInline ( Patch ( source , "second" , framework : "net10.0" ) ) ] ) ;
47+ InlineStaging . Persist ( [ new ( Patch ( source , "first" , framework : "net10.0" ) ) ] ) ;
48+ InlineStaging . Persist ( [ new ( Patch ( source , "second" , framework : "net10.0" ) ) ] ) ;
4949
5050 var files = project . StagedFiles ( ) ;
5151 await Assert . That ( files . Count ) . IsEqualTo ( 3 ) ;
52- await Assert . That ( File . ReadAllText ( files . Single ( _ => _ . EndsWith ( ".received.txt" ) ) ) )
52+ await Assert . That ( await File . ReadAllTextAsync ( files . Single ( _ => _ . EndsWith ( ".received.txt" ) ) ) )
5353 . IsEqualTo ( "second" ) ;
5454 }
5555
@@ -82,7 +82,7 @@ public async Task SourceWithNoProjectAboveItIsSkipped()
8282 // stage, and skipped is better than a guess.
8383 var source = Path . Combine ( Path . GetTempPath ( ) , $ "inline-staging-none-{ Guid . NewGuid ( ) : N} ", "SampleTests.cs" ) ;
8484
85- var written = InlineStaging . Persist ( [ new PendingInline ( Patch ( source , "content" ) ) ] ) ;
85+ var written = InlineStaging . Persist ( [ new ( Patch ( source , "content" ) ) ] ) ;
8686
8787 await Assert . That ( written ) . IsEqualTo ( 0 ) ;
8888 }
@@ -99,7 +99,7 @@ public async Task RemoveIsNeverPersisted()
9999 OriginalValue = "old"
100100 } ;
101101
102- var written = InlineStaging . Persist ( [ new PendingInline ( remove ) ] ) ;
102+ var written = InlineStaging . Persist ( [ new ( remove ) ] ) ;
103103
104104 await Assert . That ( written ) . IsEqualTo ( 0 ) ;
105105 await Assert . That ( project . StagedFiles ( ) ) . IsEmpty ( ) ;
@@ -111,7 +111,7 @@ public async Task UnlabeledPatchStillPersists()
111111 using var project = new TempProject ( ) ;
112112 var source = project . Source ( "SampleTests.cs" ) ;
113113
114- var written = InlineStaging . Persist ( [ new PendingInline ( Patch ( source , "content" ) ) ] ) ;
114+ var written = InlineStaging . Persist ( [ new ( Patch ( source , "content" ) ) ] ) ;
115115
116116 await Assert . That ( written ) . IsEqualTo ( 1 ) ;
117117 var patchFile = project . StagedFiles ( ) . Single ( _ => _ . EndsWith ( ".inlinepatch" ) ) ;
0 commit comments