public void DeserializeTest() { // arrange IPaletteSerializer target; string fileName; ColorCollection expected; ColorCollection actual; fileName = Path.Combine(this.DataPath, "background.lbm"); target = new InterleavedBitmapPaletteSerializer(); expected = new JascPaletteSerializer().Deserialize(Path.Combine(this.DataPath, "background.pal")); // act using (Stream stream = File.OpenRead(fileName)) actual = target.Deserialize(stream); // assert CollectionAssert.AreEqual(expected, actual); }
public void DeserializeTest() { // arrange IPaletteSerializer target; string fileName; ColorCollection expected; ColorCollection actual; fileName = Path.Combine(this.DataPath, "background.lbm"); target = new InterleavedBitmapPaletteSerializer(); expected = new JascPaletteSerializer().Deserialize(Path.Combine(this.DataPath, "background.pal")); // act using (Stream stream = File.OpenRead(fileName)) { actual = target.Deserialize(stream); } // assert CollectionAssert.AreEqual(expected, actual); }