Exemplo n.º 1
0
        public void TestIsBluntAngledBadInput()
        {
            var sides = new double[] { -1, 2 };

            try
            {
                TriangleUtils.IsBluntAngled(sides);
                Assert.True(false, "Exception not thrown");
            }
            catch (ArgumentException)
            {
                //Test pass
            }
        }
Exemplo n.º 2
0
        public void TestIsBluntAngledFalse()
        {
            var sides = new double[] { 4, 4, 3 };

            Assert.False(TriangleUtils.IsBluntAngled(sides));
        }
Exemplo n.º 3
0
        public void TestIsBluntAngledTrue()
        {
            var sides = new double[] { 10, 10, 19 };

            Assert.True(TriangleUtils.IsBluntAngled(sides));
        }