public void CalculateErrorTypeData_Fail()
        {
            var processor = new ProxyFigureProcessors();

            processor.Init(new CircleValidator(), new CircleCalculator());

            Assert.Throws <InvalidCastException>(() => processor.Calculate(new TriangleDescription()));
        }
        public void Calculate_Success()
        {
            var processor = new ProxyFigureProcessors();

            processor.Init(new CircleValidator(), new CircleCalculator());

            double result = processor.Calculate(new CircleDescription {
                Radius = 1
            });

            Assert.That(Math.PI, Is.EqualTo(result).Within(DoubleHelpers.Tolerance));
        }