public static void TestEncoding() { string [] testfiles = { "samples/utf16be.txt", "samples/utf16-all-bad-dc00-dfff.txt", "samples/utf16-all-good-after-dfff.txt", "samples/utf16-all-good-before-dc00.txt", "samples/utf16-all-surrogates.txt", }; EncoderTestDefaultFallback etdf = new EncoderTestDefaultFallback(cnvout); EncoderTestExceptionFallback etef = new EncoderTestExceptionFallback(cnvout); etdf.RunAll(testfiles); etef.RunAll(testfiles); }
public static void TestEncoding () { string [] testfiles = { "samples/utf16be.txt", "samples/utf16-all-bad-dc00-dfff.txt", "samples/utf16-all-good-after-dfff.txt", "samples/utf16-all-good-before-dc00.txt", "samples/utf16-all-surrogates.txt", }; EncoderTestDefaultFallback etdf = new EncoderTestDefaultFallback (cnvout); EncoderTestExceptionFallback etef = new EncoderTestExceptionFallback (cnvout); etdf.RunAll (testfiles); etef.RunAll (testfiles); }