public void TestWrite() { bbm = new BBMImage(16, 16); for (int i = 0; i < bbm.Data.Length; ++i) { bbm.Data[i] = (byte)i; bbm.Palette[i] = new Color(255, i, i, i); } bbm.Mask = 0; byte[] data; using (MemoryStream ms = new MemoryStream()) { bbm.Write(ms); data = ms.ToArray(); } Assert.AreEqual(TestUtils.GetArrayFromResourceStream("carpet.bbm"), data); }
public void Setup() { bbm = new BBMImage(); }