public void UpdateAtlasTest(string atlasFile, string textureName) { var atlas = texTool.LoadAtlas(TexAtlas.TexLayout.Import(TestTools.InputTestFolder + Path.GetFileNameWithoutExtension(atlasFile) + TexAtlas.TexLayout.Extension), TestTools.InputTestFolder + atlasFile); var updateTexture = texTool.Load(TestTools.InputTestFolder + textureName); texTool.Update(atlas, updateTexture); Assert.IsTrue(TestTools.ComputeSHA1(atlas.Data, atlas.DataSize).Equals(TestTools.GetInstance().Checksum["TextureTool_UpdateAtlas_" + atlasFile + "_" + Path.GetFileName(textureName)])); //Console.WriteLine("TextureTool_UpdateAtlas_" + atlasFile + "_" + Path.GetFileName(textureName) + "." + TestTools.ComputeSHA1(atlas.Data, atlas.DataSize)); atlas.Dispose(); updateTexture.Dispose(); }