public void ExtractAllAtlasTest(string atlasFile) { string[] fileList = Directory.GetFiles(TestTools.InputTestFolder + "atlas/"); var list = new List <TexImage>(fileList.Length); foreach (string filePath in fileList) { list.Add(texTool.Load(filePath)); } var atlas = texTool.CreateAtlas(list); var extracted = texTool.ExtractAll(atlas); Assert.IsTrue(extracted.Count == list.Count); foreach (var image in extracted) { Assert.IsTrue(TestTools.ComputeSHA1(image.Data, image.DataSize).Equals(TestTools.GetInstance().Checksum["ExtractAll_" + image.Name])); image.Dispose(); } atlas.Dispose(); foreach (var image in list) { image.Dispose(); } }