@@ -33,9 +33,8 @@ public async Task Compose_ValidExample1_FromSpecified_ToStdOut()
33
33
34
34
// assert
35
35
Assert . Equal ( 0 , exitCode ) ;
36
- Assert . Equal (
37
- s_validExample1CompositeSchema ,
38
- testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " ) ) ;
36
+ testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " )
37
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
39
38
}
40
39
41
40
[ Fact ]
@@ -56,9 +55,8 @@ public async Task Compose_ValidExample1_FromWorkingDirectory_ToStdOut()
56
55
57
56
// assert
58
57
Assert . Equal ( 0 , exitCode ) ;
59
- Assert . Equal (
60
- s_validExample1CompositeSchema ,
61
- testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " ) ) ;
58
+ testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " )
59
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
62
60
}
63
61
64
62
[ Fact ]
@@ -86,9 +84,8 @@ public async Task Compose_ValidExample1_FromSpecified_ToFileInCurrentDirectory()
86
84
// assert
87
85
Assert . Equal ( 0 , exitCode ) ;
88
86
Assert . True ( File . Exists ( filePath ) ) ;
89
- Assert . Equal (
90
- s_validExample1CompositeSchema ,
91
- ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " ) ) ;
87
+ ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " )
88
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
92
89
93
90
// cleanup
94
91
File . Delete ( filePath ) ;
@@ -119,9 +116,8 @@ public async Task Compose_ValidExample1_FromSpecified_ToFileRelativeToCurrentDir
119
116
// assert
120
117
Assert . Equal ( 0 , exitCode ) ;
121
118
Assert . True ( File . Exists ( filePath ) ) ;
122
- Assert . Equal (
123
- s_validExample1CompositeSchema ,
124
- ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " ) ) ;
119
+ ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " )
120
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
125
121
126
122
// cleanup
127
123
File . Delete ( filePath ) ;
@@ -150,9 +146,8 @@ public async Task Compose_ValidExample1_FromWorkingDirectory_ToFileInWorkingDire
150
146
// assert
151
147
Assert . Equal ( 0 , exitCode ) ;
152
148
Assert . True ( File . Exists ( filePath ) ) ;
153
- Assert . Equal (
154
- s_validExample1CompositeSchema ,
155
- ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " ) ) ;
149
+ ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " )
150
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
156
151
157
152
// cleanup
158
153
File . Delete ( filePath ) ;
@@ -181,9 +176,8 @@ public async Task Compose_ValidExample1_FromWorkingDirectory_ToFileRelativeToWor
181
176
// assert
182
177
Assert . Equal ( 0 , exitCode ) ;
183
178
Assert . True ( File . Exists ( filePath ) ) ;
184
- Assert . Equal (
185
- s_validExample1CompositeSchema ,
186
- ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " ) ) ;
179
+ ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " )
180
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
187
181
188
182
// cleanup
189
183
File . Delete ( filePath ) ;
@@ -211,9 +205,8 @@ public async Task Compose_ValidExample1_FromWorkingDirectory_ToFileAtFullyQualif
211
205
// assert
212
206
Assert . Equal ( 0 , exitCode ) ;
213
207
Assert . True ( File . Exists ( filePath ) ) ;
214
- Assert . Equal (
215
- s_validExample1CompositeSchema ,
216
- ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " ) ) ;
208
+ ( await File . ReadAllTextAsync ( filePath ) ) . ReplaceLineEndings ( "\n " )
209
+ . MatchInlineSnapshot ( s_validExample1CompositeSchema ) ;
217
210
218
211
// cleanup
219
212
File . Delete ( filePath ) ;
@@ -322,9 +315,8 @@ public async Task Compose_InvalidExample1_FromWorkingDirectory_ToStdOutWithWarni
322
315
323
316
// assert
324
317
Assert . Equal ( 0 , exitCode ) ;
325
- Assert . Equal (
326
- s_invalidExample1CompositeSchema ,
327
- testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " ) ) ;
318
+ testConsole . Out . ToString ( ) ! . ReplaceLineEndings ( "\n " )
319
+ . MatchInlineSnapshot ( s_invalidExample1CompositeSchema ) ;
328
320
}
329
321
330
322
[ Fact ]
0 commit comments