33using System . Text . Json ;
44using System . Threading . Tasks ;
55using aweXpect ;
6+ using static aweXpect . Expect ;
67using NUnit . Framework ;
78using static System . Reflection . BindingFlags ;
89
@@ -14,57 +15,57 @@ public class ApiParityTests
1415 [ Test ]
1516 public async Task File ( ) =>
1617 await AssertParity (
17- typeof ( System . IO . File ) ,
18- typeof ( System . IO . Abstractions . FileBase )
18+ typeof ( File ) ,
19+ typeof ( FileBase )
1920 ) ;
2021
2122 [ Test ]
2223 public async Task FileInfo ( ) =>
2324 await AssertParity (
24- typeof ( System . IO . FileInfo ) ,
25- typeof ( System . IO . Abstractions . FileInfoBase )
25+ typeof ( FileInfo ) ,
26+ typeof ( FileInfoBase )
2627 ) ;
2728
2829 [ Test ]
2930 public async Task FileVersionInfo ( ) =>
3031 await AssertParity (
31- typeof ( System . Diagnostics . FileVersionInfo ) ,
32- typeof ( System . IO . Abstractions . FileVersionInfoBase )
32+ typeof ( Diagnostics . FileVersionInfo ) ,
33+ typeof ( FileVersionInfoBase )
3334 ) ;
3435
3536 [ Test ]
3637 public async Task Directory ( ) =>
3738 await AssertParity (
38- typeof ( System . IO . Directory ) ,
39- typeof ( System . IO . Abstractions . DirectoryBase )
39+ typeof ( Directory ) ,
40+ typeof ( DirectoryBase )
4041 ) ;
4142
4243 [ Test ]
4344 public async Task DirectoryInfo ( ) =>
4445 await AssertParity (
45- typeof ( System . IO . DirectoryInfo ) ,
46- typeof ( System . IO . Abstractions . DirectoryInfoBase )
46+ typeof ( DirectoryInfo ) ,
47+ typeof ( DirectoryInfoBase )
4748 ) ;
4849
4950 [ Test ]
5051 public async Task DriveInfo ( ) =>
5152 await AssertParity (
52- typeof ( System . IO . DriveInfo ) ,
53- typeof ( System . IO . Abstractions . DriveInfoBase )
53+ typeof ( DriveInfo ) ,
54+ typeof ( DriveInfoBase )
5455 ) ;
5556
5657 [ Test ]
5758 public async Task Path ( ) =>
5859 await AssertParity (
59- typeof ( System . IO . Path ) ,
60- typeof ( System . IO . Abstractions . PathBase )
60+ typeof ( Path ) ,
61+ typeof ( PathBase )
6162 ) ;
6263
6364 [ Test ]
6465 public async Task FileSystemWatcher ( ) =>
6566 await AssertParity (
66- typeof ( System . IO . FileSystemWatcher ) ,
67- typeof ( System . IO . Abstractions . FileSystemWatcherBase )
67+ typeof ( FileSystemWatcher ) ,
68+ typeof ( FileSystemWatcherBase )
6869 ) ;
6970
7071 private async Task AssertParity ( Type referenceType , Type abstractionType )
@@ -97,7 +98,7 @@ static IEnumerable<string> GetMembers(Type type) => type
9798 var fileName = $ "ApiParityTests.{ referenceType . Name } _{ snapshotSuffix } .snap";
9899 var fileContent = IO . File . ReadAllText ( IO . Path . Combine ( snapshotPath , fileName ) ) ;
99100
100- await Expect . That ( fileContent ) . IsEqualTo ( serializedDiff )
101+ await That ( fileContent ) . IsEqualTo ( serializedDiff )
101102 . IgnoringNewlineStyle ( )
102103 . IgnoringTrailingWhiteSpace ( ) ;
103104 }
0 commit comments