示例#1
0
        public void CalculateArea_Correct(double radius, double area)
        {
            var circle = FlatFigureFabric.CreateCircle(radius);
            var result = circle.CalculateArea();

            Assert.AreEqual(area, result);
        }
示例#2
0
 public void NewCircle_NotPositiveRadius_Exception(double radius)
 {
     Assert.Throws <ValidationException>(() => FlatFigureFabric.CreateCircle(radius));
 }
示例#3
0
 public void NewCircle_PositiveRadius_OK(double radius)
 {
     Assert.DoesNotThrow(() => FlatFigureFabric.CreateCircle(radius));
 }