コード例 #1
0
        public void ReturnObtuseIfOneSideSquaredThatSquaredSumOfTwo(float a, float b, float c)
        {
            var result = TriangleTypeAnalyzer.AnalyzeTriangle(a, b, c);

            Assert.That(result, Is.EqualTo(TriangleType.Obtuse));
        }
コード例 #2
0
        public void ReturnUndefinedIfOneSideMoreThatSumOfTwo(float a, float b, float c)
        {
            var result = TriangleTypeAnalyzer.AnalyzeTriangle(a, b, c);

            Assert.That(result, Is.EqualTo(TriangleType.Undefined));
        }