public void LowerVectorsToBottom() { var first = new Vectors(_image, "firstVector"); var second = new Vectors(_image, "secondVector"); _image.AddVectors(first, -1); _image.AddVectors(second, -1); _image.LowerItemToBottom(second); Assert.AreEqual(0, _image.GetItemPosition(first)); Assert.AreEqual(1, _image.GetItemPosition(second)); }
public void LowerLayerToBottom() { var layer1 = new Layer(_image, "test1", ImageType.Rgb); _image.InsertLayer(layer1, 0); var layer2 = new Layer(_image, "test2", ImageType.Rgb); _image.InsertLayer(layer2, 0); Assert.AreEqual(1, layer1.Position); Assert.AreEqual(0, layer2.Position); _image.LowerItemToBottom(layer2); Assert.AreEqual(0, layer1.Position); Assert.AreEqual(1, layer2.Position); }