Exemple #1
0
        public void TestForIFigureImplsExistance()
        {
            var figures =
                UnitSquareCalculationExtension
                .GetAllFigures();

            Assert.NotNull(figures);
            Assert.NotEmpty(figures);
        }
Exemple #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));
            }
        }