static void Main(string[] args) { Triangle shape = ShapesLib.CreateShape(12, 15, 18); Console.WriteLine(ShapesLib.GetSquare(shape)); Console.ReadLine(); }
public void GetRoundSquareTest() { // arrange double arg1 = 12; //radius var round = ShapesLib.CreateShape(arg1); double expected = 452.39; // act var result = ShapesLib.GetSquare(round); // assert Assert.AreEqual(expected, result); }
public void GetTrianleSquareTest() { // arrange double arg1 = 12; //a double arg2 = 15; //b double arg3 = 18; //c var triangle = ShapesLib.CreateShape(arg1, arg2, arg3); double expected = 89.29; // act var result = ShapesLib.GetSquare(triangle); // assert Assert.AreEqual(expected, result); }