@@ -15,13 +15,13 @@ public sealed class BcTests
1515 [ SetUp ]
1616 public void InitializeOriginalData ( )
1717 {
18- originalBgra32LogoData = File . ReadAllBytes ( PathConstants . BcTestFilesFolder + "test.bgra32" ) ;
18+ originalBgra32LogoData = File . ReadAllBytes ( TestFileFolders . BcTestFiles + "test.bgra32" ) ;
1919 }
2020
2121 [ Test ]
2222 public void DecompressDXT1Test ( )
2323 {
24- ReadOnlySpan < byte > data = File . ReadAllBytes ( PathConstants . DxtTestFilesFolder + "test.dxt1" ) ;
24+ ReadOnlySpan < byte > data = File . ReadAllBytes ( TestFileFolders . DxtTestFiles + "test.dxt1" ) ;
2525 int totalBytesRead = 0 ;
2626 foreach ( int size in new int [ ] { 256 , 128 , 64 , 32 , 16 , 8 , 4 } ) //mipmaps 2 and 1 cause a buffer overrun for the output
2727 {
@@ -36,7 +36,7 @@ public void DecompressDXT1Test()
3636 [ Test ]
3737 public void DecompressDXT3Test ( )
3838 {
39- ReadOnlySpan < byte > data = File . ReadAllBytes ( PathConstants . DxtTestFilesFolder + "test.dxt3" ) ;
39+ ReadOnlySpan < byte > data = File . ReadAllBytes ( TestFileFolders . DxtTestFiles + "test.dxt3" ) ;
4040 int totalBytesRead = 0 ;
4141 foreach ( int size in new int [ ] { 256 , 128 , 64 , 32 , 16 , 8 , 4 } ) //mipmaps 2 and 1 cause a buffer overrun for the output
4242 {
@@ -51,7 +51,7 @@ public void DecompressDXT3Test()
5151 [ Test ]
5252 public void DecompressDXT5Test ( )
5353 {
54- ReadOnlySpan < byte > data = File . ReadAllBytes ( PathConstants . DxtTestFilesFolder + "test.dxt5" ) ;
54+ ReadOnlySpan < byte > data = File . ReadAllBytes ( TestFileFolders . DxtTestFiles + "test.dxt5" ) ;
5555 int totalBytesRead = 0 ;
5656 foreach ( int size in new int [ ] { 256 , 128 , 64 , 32 , 16 , 8 , 4 } ) //mipmaps 2 and 1 cause a buffer overrun for the output
5757 {
@@ -66,53 +66,53 @@ public void DecompressDXT5Test()
6666 [ Test ]
6767 public void DecompressBC4Test ( )
6868 {
69- ReadOnlySpan < byte > data = File . ReadAllBytes ( PathConstants . BcTestFilesFolder + "test.bc4" ) ;
69+ ReadOnlySpan < byte > data = File . ReadAllBytes ( TestFileFolders . BcTestFiles + "test.bc4" ) ;
7070 int bytesRead = Bc4 . Decompress ( data , 512 , 512 , out _ ) ;
7171 Assert . That ( bytesRead , Is . EqualTo ( data . Length ) ) ;
7272 }
7373
7474 [ Test ]
7575 public void DecompressBC5Test ( )
7676 {
77- ReadOnlySpan < byte > data = File . ReadAllBytes ( PathConstants . BcTestFilesFolder + "test.bc5" ) ;
77+ ReadOnlySpan < byte > data = File . ReadAllBytes ( TestFileFolders . BcTestFiles + "test.bc5" ) ;
7878 int bytesRead = Bc5 . Decompress ( data , 512 , 512 , out _ ) ;
7979 Assert . That ( bytesRead , Is . EqualTo ( data . Length ) ) ;
8080 }
8181
8282 [ Test ]
8383 public void DecompressBC6HFastTest ( )
8484 {
85- AssertCorrectBC6HDecompression ( PathConstants . BcTestFilesFolder + "test.bc6h_fast" , 512 , 512 , false ) ;
85+ AssertCorrectBC6HDecompression ( TestFileFolders . BcTestFiles + "test.bc6h_fast" , 512 , 512 , false ) ;
8686 }
8787
8888 [ Test ]
8989 public void DecompressBC6HNormalTest ( )
9090 {
91- AssertCorrectBC6HDecompression ( PathConstants . BcTestFilesFolder + "test.bc6h_normal" , 512 , 512 , false ) ;
91+ AssertCorrectBC6HDecompression ( TestFileFolders . BcTestFiles + "test.bc6h_normal" , 512 , 512 , false ) ;
9292 }
9393
9494 [ Test ]
9595 public void DecompressBC6HBestTest ( )
9696 {
97- AssertCorrectBC6HDecompression ( PathConstants . BcTestFilesFolder + "test.bc6h_best" , 512 , 512 , false ) ;
97+ AssertCorrectBC6HDecompression ( TestFileFolders . BcTestFiles + "test.bc6h_best" , 512 , 512 , false ) ;
9898 }
9999
100100 [ Test ]
101101 public void DecompressBC7FastTest ( )
102102 {
103- AssertCorrectBC7Decompression ( PathConstants . BcTestFilesFolder + "test.bc7_fast" , 512 , 512 ) ;
103+ AssertCorrectBC7Decompression ( TestFileFolders . BcTestFiles + "test.bc7_fast" , 512 , 512 ) ;
104104 }
105105
106106 [ Test ]
107107 public void DecompressBC7NormalTest ( )
108108 {
109- AssertCorrectBC7Decompression ( PathConstants . BcTestFilesFolder + "test.bc7_normal" , 512 , 512 ) ;
109+ AssertCorrectBC7Decompression ( TestFileFolders . BcTestFiles + "test.bc7_normal" , 512 , 512 ) ;
110110 }
111111
112112 [ Test ]
113113 public void DecompressBC7BestTest ( )
114114 {
115- AssertCorrectBC7Decompression ( PathConstants . BcTestFilesFolder + "test.bc7_best" , 512 , 512 ) ;
115+ AssertCorrectBC7Decompression ( TestFileFolders . BcTestFiles + "test.bc7_best" , 512 , 512 ) ;
116116 }
117117
118118 private static void AssertCorrectBC6HDecompression ( string path , int width , int height , bool isSigned )
@@ -186,4 +186,4 @@ private static void AssertMinimalDeviation(byte[] decoded, byte[] original, doub
186186 } ) ;
187187 }
188188 }
189- }
189+ }
0 commit comments