示例#1
0
        public void LineNDIFabricTest()
        {
            LineNDIFabric lineNDIFabric = new LineNDIFabric();
            AFigure       actual        = lineNDIFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(LineNDIFigure), actual.GetType());
        }
示例#2
0
        public void RectTriangleIFabricTest()
        {
            RectTriangleIFabric rectTriangleIFabric = new RectTriangleIFabric();
            AFigure             actual = rectTriangleIFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(RectTriangleIFigure), actual.GetType());
        }
示例#3
0
        public void FigureNDCreateFigureTest()
        {
            FigureNDIFabric figureNDFabric = new FigureNDIFabric();
            AFigure         actual         = figureNDFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(FigureNDIFigure), actual.GetType());
        }
示例#4
0
        public void IsoscelesTriangleIFabricTest()
        {
            IsoscelesTriangleIFabric isoscelesTriangleIFabric = new IsoscelesTriangleIFabric();
            AFigure actual = isoscelesTriangleIFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(IsoscelesTriangleIFigure), actual.GetType());
        }
示例#5
0
        public void CircleCreateFigureTest()
        {
            CircleIFabric circleFabric = new CircleIFabric();
            AFigure       actual       = circleFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(CircleFigure), actual.GetType());
        }
示例#6
0
        public void BrushCreateFigureTest()
        {
            BrushFabric brushFabric = new BrushFabric();
            AFigure     actual      = brushFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(BrushIFigure), actual.GetType());
        }
示例#7
0
        public void EllipseFCreateFigureTest()
        {
            EllipseIFabric ellipseFabric = new EllipseIFabric();
            AFigure        actual        = ellipseFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(EllipseFigure), actual.GetType());
        }
示例#8
0
        public void SqareCreateFigureTest()
        {
            SquareIFabric squareFabric = new SquareIFabric();
            AFigure       actual       = squareFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(SquareFigure), actual.GetType());
        }
示例#9
0
        public void Triangle3DIFabricTest()
        {
            Triangle3DIFabric triangle3DIFabric = new Triangle3DIFabric();
            AFigure           actual            = triangle3DIFabric.CreateFigure(new Pen(Color.Black, 5));

            Assert.AreEqual(typeof(Triangle3DFigure), actual.GetType());
        }