public void InsertTest(string arrayFile, string newTexture, int indice) { var array = texTool.Load(TestTools.InputTestFolder + arrayFile); var texture = texTool.Load(TestTools.InputTestFolder + newTexture); texTool.Compress(texture, PixelFormat.BC3_UNorm); texTool.Insert(array, texture, indice); //Console.WriteLine("TextureTool_Insert_" + indice + "_" + Path.GetFileName(newTexture) + "_" + arrayFile + "." + TestTools.ComputeSHA1(array.Data, array.DataSize)); Assert.IsTrue(TestTools.ComputeSHA1(array.Data, array.DataSize).Equals(TestTools.GetInstance().Checksum["TextureTool_Insert_" + indice + "_" + Path.GetFileName(newTexture) + "_" + arrayFile])); try { texTool.Insert(array, texture, array.ArraySize + 1); Assert.IsTrue(false); } catch (TextureToolsException) { Assert.IsTrue(true); } array.Dispose(); texture.Dispose(); }