public void TestQuadNoNegativeSides()
        {
            MockQuadrilateral quad1 = new MockQuadrilateral();

            quad1.Side1 = 2;
            quad1.Side2 = 2;
            quad1.Side3 = 2;
            quad1.Side4 = -2;
        }
        public void QuadScalingUpTest()
        {
            MockQuadrilateral quad2 = new MockQuadrilateral(2, 2, 2, 2);

            quad2.Scale(50);
            Assert.AreEqual(3, quad2.Side1);
            Assert.AreEqual(3, quad2.Side2);
            Assert.AreEqual(3, quad2.Side3);
            Assert.AreEqual(3, quad2.Side4);
        }
        public void TestQuadCanComputePerimeter2()
        {
            MockQuadrilateral myQuad = new MockQuadrilateral();

            myQuad.Side1 = 2;
            myQuad.Side2 = 2;
            myQuad.Side3 = 2;
            myQuad.Side4 = 2;
            Assert.AreEqual(8, myQuad.Perimeter());
        }
        public void QuadScalingDownTest()
        {
            MockQuadrilateral quad2 = new MockQuadrilateral(10, 10, 10, 10);

            quad2.Scale(-50);
            Assert.AreEqual(5, quad2.Side1);
            Assert.AreEqual(5, quad2.Side2);
            Assert.AreEqual(5, quad2.Side3);
            Assert.AreEqual(5, quad2.Side4);
        }
        public void TestQuadPerimetersAreTheSame()
        {
            MockQuadrilateral quad1 = new MockQuadrilateral();

            quad1.Side1 = 2;
            quad1.Side2 = 2;
            quad1.Side3 = 2;
            quad1.Side4 = 2;
            MockQuadrilateral quad2 = new MockQuadrilateral(2, 2, 2, 2);

            Assert.AreEqual(quad1.Perimeter(), quad2.Perimeter());
        }
 public void TestQuadNoNegativeSidesInConstructor()
 {
     MockQuadrilateral quad = new MockQuadrilateral(2, -2, 2, 2);
 }
        public void TestQuadrilateralComputePerimeter()
        {
            MockQuadrilateral myQuad = new MockQuadrilateral(2.3F, 3.1F, 1.9F, 3.9F);

            Assert.AreEqual(11.2F, myQuad.Perimeter());
        }
        public void TestQuadAreaNotImplemented()
        {
            MockQuadrilateral myQuad = new MockQuadrilateral();

            myQuad.Area();
        }
        public void TestQuadHasDefaultSize()
        {
            MockQuadrilateral myQuad = new MockQuadrilateral();

            myQuad.Perimeter();
        }
        public void InvalidScaleArgument()
        {
            MockQuadrilateral quad2 = new MockQuadrilateral(2, 2, 2, 2);

            quad2.Scale(0);
        }