Example #1
0
        public void RoundingTest()
        {
            RightAngledTriangle rt = new RightAngledTriangle(7.0, 6.0);

            Assert.NotEqual(24.576, rt.CalcPerimeter());
        }
Example #2
0
        public void CalcPerimeter_Test(double expected, double @base, double height)
        {
            RightAngledTriangle rt = new RightAngledTriangle(@base, height);

            Assert.Equal(expected, rt.CalcPerimeter());
        }