示例#1
0
    public static void TestDecoding()
    {
        string [] testfiles =
        {
            "samples/euro.txt-u",
            "samples/lyrics-ipa.txt",
            "samples/TeX.txt",
            "samples/UTF-8-demo.txt",
            "samples/UTF-8-KERMIT-SAMPLER.html",
            "samples/UTF-8-test.txt",
            "samples/wgl4.txt",
        };
        DecoderTestDefaultFallback   dtdf = new DecoderTestDefaultFallback(cnvout);
        DecoderTestExceptionFallback dtef = new DecoderTestExceptionFallback(cnvout);

        dtdf.RunAll(testfiles);
        dtef.RunAll(testfiles);
    }
	public static void TestDecoding ()
	{
		string [] testfiles = {
			"samples/euro.txt-u",
			"samples/lyrics-ipa.txt",
			"samples/TeX.txt",
			"samples/UTF-8-demo.txt",
			"samples/UTF-8-KERMIT-SAMPLER.html",
			"samples/UTF-8-test.txt",
			"samples/wgl4.txt",
		};
		DecoderTestDefaultFallback dtdf = new DecoderTestDefaultFallback (cnvout);
		DecoderTestExceptionFallback dtef = new DecoderTestExceptionFallback (cnvout);

		dtdf.RunAll (testfiles);
		dtef.RunAll (testfiles);
	}