Exemplo n.º 1
0
        public void PositionOne()
        {
            var first  = new Vectors(_image, "firstVector");
            var second = new Vectors(_image, "secondVector");

            _image.AddVectors(first, -1);
            _image.AddVectors(second, -1);
            Assert.AreEqual(1, _image.GetItemPosition(first));
            Assert.AreEqual(0, _image.GetItemPosition(second));
        }
Exemplo n.º 2
0
        public void GetLayerPosition()
        {
            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, _image.GetItemPosition(layer1));
            Assert.AreEqual(0, _image.GetItemPosition(layer2));
        }