Ejemplo n.º 1
0
        public void TestForIFigureImplsExistance()
        {
            var figures =
                UnitSquareCalculationExtension
                .GetAllFigures();

            Assert.NotNull(figures);
            Assert.NotEmpty(figures);
        }
Ejemplo n.º 2
0
        public void TestAllImplsForSquareCalculationEx()
        {
            var figures =
                UnitSquareCalculationExtension
                .GetAllFigures();

            var initializationParams = GetInitialiationParams(figures).ToArray();

            foreach (var figure in figures)
            {
                Assert.Throws <ParamsWrongNumberException>(() =>
                                                           figure.CalculateFigureSquare(initializationParams));
            }
        }