Exemplo n.º 1
0
        public void GetSide_IncorrectTypeOfSide_ShouldFail(string sideA, string sideB, string sideC)
        {
            var ui  = new TriangleUI();
            var app = new TrianglesSortingApp(ui);

            Assert.Throws <FormatException>(() => app.Run(sideA, sideB, sideC, "Test"));
        }
Exemplo n.º 2
0
        public void CheckSides_TriangleIsNotValid_ShouldFail(string sideA, string sideB, string sideC, string parameterName)
        {
            var ui  = new TriangleUI();
            var app = new TrianglesSortingApp(ui);

            Assert.Throws <ArgumentException>(parameterName, () => app.Run(sideA, sideB, sideC, "Test"));
        }