Ejemplo n.º 1
0
        public void CalculateTriangleSurface()
        {
            var shapeService = new ShapeService(new TriangleStrategy());
            var result       = shapeService.Calculate();

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

            Assert.AreEqual(20, result);
        }