コード例 #1
0
        public void Convert_RM2K3BToMVTest()
        {
            converter = new TilesetConverterVerticalRM2K3(new Maker.R2k_2k3_B(), SpriteMode.ALIGN_TOP_LEFT, false);
            Bitmap converted = converter.ConvertToMV(BitmapFromResourceStream("Tests.Images.R2k.R2k3_in.png"))[0];
            Bitmap R2kOut    = BitmapFromResourceStream("Tests.Images.R2k.Converter.R2k3_out_b_success.png");

            Assert.IsTrue(ImageEditor.IsEqual(converted, R2kOut));
        }
コード例 #2
0
        public void Convert_RM2K3ABToMVTest()
        {
            converter = new TilesetConverterVerticalRM2K3(new Maker.R2k_2k3_AB(), SpriteMode.ALIGN_TOP_LEFT, false);
            Bitmap[] converted = converter.ConvertToMV(BitmapFromResourceStream("Tests.Images.R2k.R2k3_in.png"));
            Bitmap   R2kOut1   = BitmapFromResourceStream("Tests.Images.R2k.Converter.R2k3_out_ab_success_0.png");
            Bitmap   R2kOut2   = BitmapFromResourceStream("Tests.Images.R2k.Converter.R2k3_out_ab_success_1.png");

            bool isTrue = ImageEditor.IsEqual(converted[0], R2kOut1) && ImageEditor.IsEqual(converted[1], R2kOut2);

            Assert.IsTrue(isTrue);
        }