Exemplo n.º 1
0
        public void GetShape_ByIndexOutOfRange_ShouldThrowException()
        {
            var pictureDraft = new PictureDraft();
            var shape        = new TestShape(Color.Blue);

            pictureDraft.AddShape(shape);
            pictureDraft.GetShape(-1);
            pictureDraft.GetShape(2);
        }
Exemplo n.º 2
0
        public void CanShape_ByIndex_ShouldGetShape()
        {
            var pictureDraft = new PictureDraft();
            var shape        = new TestShape(Color.Blue);

            pictureDraft.AddShape(shape);
            Assert.AreEqual(shape, pictureDraft.GetShape(0));
        }