private void _ConversionTest(string method) { var files = new string[] { "fight_of_thrones_by_orkimides-d6sa500.png", "squish_test_original.png", "UVGrid1.jpg", "UVGrid2.jpg", "Ivy1.png", "Rainbow_to_alpha_gradient_large.png", "Rainbow_to_alpha_gradient_small.png", "tree.png", "rocks-diffuse.png", "rocks-normals.png" }; foreach (var f in files) { System.Console.WriteLine(f); var ff = System.IO.Path.Combine("TestFiles", f); SquishUtils.ProcessFile(method, ff, txt => TestContext.WriteLine(txt), dstfn => TestContext.AddTestAttachment(dstfn)); TestContext.WriteLine(string.Empty); } }
public void ConversionTest1(string method) { SquishUtils.ProcessFile(method, "TestFiles\\fight_of_thrones_by_orkimides-d6sa500.png", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\squish_test_original.png", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\UVGrid1.jpg", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\UVGrid2.jpg", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\Ivy1.png", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\Rainbow_to_alpha_gradient_large.png", TestContext); SquishUtils.ProcessFile(method, "TestFiles\\Rainbow_to_alpha_gradient_small.png", TestContext); }
private void _ConversionTest(string method) { SquishUtils.ProcessFile(method, "TestFiles\\fight_of_thrones_by_orkimides-d6sa500.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\squish_test_original.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\UVGrid1.jpg", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\UVGrid2.jpg", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\Ivy1.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\Rainbow_to_alpha_gradient_large.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\Rainbow_to_alpha_gradient_small.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\tree.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\rocks-diffuse.png", txt => TestContext.WriteLine(txt)); SquishUtils.ProcessFile(method, "TestFiles\\rocks-normals.png", txt => TestContext.WriteLine(txt)); }