Beispiel #1
0
        public void TriangleType_InvalidSidesThrowException(int side1, int side2, int side3)
        {
            // Arrange
            var puzzleThree = new PuzzleThree();

            // Act
            // Assert
            Assert.That(() => puzzleThree.GetTriangleType(side1, side2, side3),
                        Throws.TypeOf <Exception>());
        }
Beispiel #2
0
        public void TriangleType_ReturnsCorrectType(int side1, int side2, int side3
                                                    , TriangleType expectedType)
        {
            // Arrange
            var puzzleThree = new PuzzleThree();

            // Act
            var result = puzzleThree.GetTriangleType(side1, side2, side3);

            // Assert
            Assert.AreEqual(expectedType, result);
        }