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")); }
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")); }
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")); }