예제 #1
0
        public void Circleの出力_円を構築()
        {
            Circle circle = new Circle();

            circle.Center = new Pos(0, 0, 0);
            circle.Radius = 1;
            TestPrintable testPrintable = new TestPrintable();

            testPrintable.Shapes.Add(circle);

            StreamReader sr     = new StreamReader("Resource/DXF/Circle.dxf");
            string       expect = sr.ReadToEnd();

            sr.Close();

            string actual = DXF.Content(testPrintable);

            Assert.AreEqual(expect, actual, true);
        }
예제 #2
0
        public void Coordinateの出力_ボックスを構築()
        {
            Coordinate coordinate = new Coordinate();

            coordinate.Points = new List <Pos>()
            {
                new Pos(0, 0, 0),
                new Pos(1, 0, 0),
                new Pos(1, 1, 0),
                new Pos(0, 1, 0)
            };
            TestPrintable testPrintable = new TestPrintable();

            testPrintable.Shapes.Add(coordinate);

            StreamReader sr     = new StreamReader("Resource/DXF/Box.dxf");
            string       expect = sr.ReadToEnd();

            sr.Close();

            string actual = DXF.Content(testPrintable);

            Assert.AreEqual(expect, actual, true);
        }