Пример #1
0
        public void GenerateTextEmpty()
        {
            var path = new An8Path();

            var text = path.GenerateText();

            string expected =
                @"path {
  name { """" }
}
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }
Пример #2
0
        public void GenerateTextExtendable()
        {
            var path = new An8Path();

            path.IsExtendable = true;

            var text = path.GenerateText();

            string expected =
                @"path {
  name { """" }
  extendable { }
}
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }
Пример #3
0
        public void GenerateTextBezier()
        {
            var path = new An8Path();

            path.Splines.Add(new An8Bezier());

            var text = path.GenerateText();

            string expected =
                @"path {
  name { """" }
  bezier {
  }
}
";

            Assert.Equal(
                expected.Replace("\r\n", "\n"),
                text.Replace("\r\n", "\n"));
        }