Esempio n. 1
0
        public void FindEqualsFiguresTest()
        {
            // arrange
            var figureType = "Square";
            var parties    = new List <double>()
            {
                7
            };
            var expected = new Square(figureType, parties);

            // act
            var actual = FindEqualsFigure.FindEqualsFigures(expected, ParseFigure.GetFigures(@"..\..\..\Resurses\Figures.txt"))[0];

            // assert;
            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void GetFiguresTest()
        {
            // arrange
            var figureType = "Triangle";
            var parties    = new List <double>()
            {
                6, 8, 10
            };
            var expected = new IFigure[1];

            expected[0] = new Triangle(figureType, parties);

            // act
            var actual = ParseFigure.GetFigures(@"..\..\..\Resurses\1Figures.txt");

            // assert;
            Assert.Equal(expected, actual);
        }