예제 #1
0
 public static void PrintName(IFigureBase figure)
 {
     Console.WriteLine(figure.Name);
 }
예제 #2
0
        private void CheckArea(IFigureBase figure, double expectedArea)
        {
            var area = Math.Round(figure.Area, 2);

            Assert.AreEqual(area, expectedArea);
        }