@@ -53,7 +53,7 @@ [new TestFile(GetTestDataPath("utf8.txt"), 619, 372, 56, 107, 0, 0)],
5353 [ new TestFile ( GetTestDataPath ( "utf8_random.txt" ) , 0 , 635 , 77 , 76 , 0 , 0 ) ] ,
5454 [ new TestFile ( GetTestDataPath ( "utf16le.txt" ) , 67 , 102 , 665 , 876 , 0 , 0 ) ] ,
5555 [ new TestFile ( GetTestDataPath ( "utf16le_random.txt" ) , 2379 , 7055 , 531 , 524 , 0 , 0 ) ] ,
56- [ new TestFile ( GetTestDataPath ( "utf16be.txt" ) , 63 , 85 , 797 , 633 , 0 , 0 ) ] ,
56+ [ new TestFile ( GetTestDataPath ( "utf16be.txt" ) , 63 , 85 , 796 , 633 , 0 , 0 ) ] ,
5757 [ new TestFile ( GetTestDataPath ( "utf16be_random.txt" ) , 2341 , 7073 , 528 , 536 , 0 , 0 ) ] ,
5858 ] ;
5959
@@ -64,7 +64,8 @@ public void TestStringCountsEqualExpectedCounts(TestFile file)
6464 foreach ( ( Encoding encoding , int ? expectedCount ) in file . Encodings )
6565 {
6666 if ( expectedCount == null ) continue ;
67- var results = new StringsFinder ( file . Path , encoding , CharSet . CurrentEncoding ) . FindStrings ( ) ;
67+ var results =
68+ new StringsFinder ( file . Path , encoding , CharSet . CurrentEncoding ) . FindStrings ( useMemoryMappedFile : false ) ;
6869 Assert . Equal ( expectedCount , results . Count ) ;
6970 }
7071 }
0 commit comments