Skip to content

Commit 40574b9

Browse files
author
moethu
committed
added test for #9 utf8 filenames
1 parent 4bb3d1b commit 40574b9

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

SketchUp/SketchUpNET/SketchUpNET.Unittest/UnitTest1.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ public void SaveAs()
3939

4040
}
4141

42+
[TestMethod]
43+
public void SaveAsUTF8()
44+
{
45+
SketchUpNET.SketchUp skp = new SketchUp();
46+
string dir = System.IO.Path.GetDirectoryName(TestFile);
47+
skp.SaveAs(TestFile, SKPVersion.V2016, dir + "/Überß.skp");
48+
49+
Assert.IsTrue(System.IO.File.Exists(dir + "/Überß.skp"));
50+
bool res = skp.LoadModel(dir + "/Überß.skp");
51+
Assert.IsTrue(res);
52+
}
53+
4254
[TestMethod]
4355
public void DoNotGetMesh()
4456
{
478 Bytes
Binary file not shown.
94.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)