コード例 #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);
        }