Example #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);
        }
Example #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));
        }