public void ExtractColorRedsTest() { Bitmap img = CreateABitmap(300, 200, 2, 1, 1); List <byte> colorReds = HideLSB.ExtractColorReds(img, 600, 1, 1); for (int i = 0; i < 600; i++) { Assert.AreEqual(2, colorReds[i]); } }
public void SetImageColorRedsTest2() { Bitmap imgToHide = CreateABitmap(2, 3, 0, 0, 0); List <byte> expected = new List <byte> { 1, 2, 3, 4, 5, 6 }; HideLSB.SetImageColorReds(ref imgToHide, 0, 0, expected); List <byte> actual = HideLSB.ExtractColorReds(imgToHide, expected.Count, 0, 0); CollectionAssert.AreEqual(expected, actual); }