コード例 #1
0
        public void OneSideDoesntExistIsFalse()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(0, 2, 6));
        }
コード例 #2
0
        public void TriangleDoesentExistIsFalse()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(0, 0, 0));
        }
コード例 #3
0
        public void OneSideBiggerThanSumOfTwoIsFalse()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(2, 2, 6));
        }
コード例 #4
0
        public void TwoSidesIsNegativeIsFalse()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(-2, -2, 6));
        }
コード例 #5
0
        public void NegativeSideIsFalse()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(-2, 2, 2));
        }
コード例 #6
0
        public void twoSidesAreEqualIsTrue()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(2, 6, 6));
        }
コード例 #7
0
        public void UsualSidesIsTrue()
        {
            TriangleTest result = new TriangleTest();

            Assert.AreEqual(true, result.Triangle(3, 4, 5));
        }