Exemple #1
0
        public void CalculateTriangleSurface()
        {
            var shapeService = new ShapeService(new TriangleStrategy());
            var result       = shapeService.Calculate();

            Assert.AreEqual(15, result);
        }
Exemple #2
0
        public void CalculateCirckleSurface()
        {
            var shapeService = new ShapeService(new CirckleStrategy());
            var result       = shapeService.Calculate();

            Assert.AreEqual(20, result);
        }