예제 #1
0
        public void RecolorFigureFigureIsRecolorNotForFirstTimeGetArgumentException()
        {
            var circle = new CirclePaper(7, Color.Blue);

            circle.RecolorFigure(Color.Green);
            circle.RecolorFigure(Color.Red);
        }
예제 #2
0
        public void RecolorFigureFigureIsRecolorForFirstTimeNewColor()
        {
            var circle = new CirclePaper(7, Color.Blue);

            circle.RecolorFigure(Color.Green);
            Color result       = circle.Color;
            Color actualResult = Color.Green;

            Assert.AreEqual(result, actualResult);
        }