public void RaiseLayer() { 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.RaiseItem(layer1); Assert.AreEqual(0, layer1.Position); Assert.AreEqual(1, layer2.Position); }
public void RaiseVectors() { var first = new Vectors(_image, "firstVector"); var second = new Vectors(_image, "secondVector"); _image.AddVectors(first, -1); _image.AddVectors(second, -1); _image.RaiseItem(first); Assert.AreEqual(0, _image.GetItemPosition(first)); Assert.AreEqual(1, _image.GetItemPosition(second)); }
public void Raise() { Image.RaiseItem(this); }