Beispiel #1
0
        public void FailSideAreaTriangleTest()
        {
            //arrange
            double a = 0;
            double b = 0;
            double c = 0;

            //actions
            ComputeAreaShape testobj = new AreaTriangleClass(a, b, c);
        }
Beispiel #2
0
        public void FailTypeAreaTriangleTest()
        {
            //arrange
            double a = 5;
            double b = 12;
            double c = 10;

            //actions
            ComputeAreaShape testobj = new AreaTriangleClass(a, b, c);
        }
Beispiel #3
0
        public void FailNegativeSideAreaTriangleTest()
        {
            //arrange
            double a = 10;
            double b = -12;
            double c = 5;

            //actions
            ComputeAreaShape testobj = new AreaTriangleClass(a, b, c);
        }
Beispiel #4
0
        public void AreaTriangleSuccessTest()
        {
            //arrange
            double a        = 5;
            double b        = 12;
            double c        = 13;
            double expected = 30;
            //actions
            ComputeAreaShape testobj = new AreaTriangleClass(a, b, c);
            double           actual  = testobj.Compute();

            //assert
            Assert.AreEqual <double>(expected, actual);
        }