예제 #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
            }
        }
예제 #2
0
        public void TestIsBluntAngledFalse()
        {
            var sides = new double[] { 4, 4, 3 };

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

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