Ejemplo n.º 1
0
        public void Rectangle_SetHeight_DoesNotAffectWidth()
        {
            //arrange
            var rectangle = new Rectangle();

            //act and assert
            SetHeight_DoesNotAffectWidth(rectangle);
        }
Ejemplo n.º 2
0
        public void SetHeight_DoesNotAffectWidth(Rectangle rectangle)
        {
            //arrange
            var expectedWidth = 4;
            rectangle.Width = expectedWidth;

            //act
            rectangle.Height = 7;

            //assert
            Assert.AreEqual(expectedWidth, rectangle.Width);
        }