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")); }
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")); }