public void Given_Circle_Radius_5_When_ComputeArea_Then_25XPI()
        {
            double expected = 25 * Math.PI;
            Circle input    = new Circle();

            input.Radius = 5;
            CircleService service = new CircleService();

            service.Target = input;
            double actual = service.ComputeArea();

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void ComputeAreaTest()
        {
            double expected = 0;
            circle input    = new circle();

            input.Radius = 0;
            CircleService operation = new CircleService();

            operation.Target = input;
            double actual = operation.ComputeArea();

            Assert.AreEqual(expected, actual);
        }