public static void PrintName(IFigureBase figure) { Console.WriteLine(figure.Name); }
private void CheckArea(IFigureBase figure, double expectedArea) { var area = Math.Round(figure.Area, 2); Assert.AreEqual(area, expectedArea); }