Skip to content

Commit 9821330

Browse files
authored
Merge pull request #73 from Unity-Technologies/UNI-22823-fix-ConverToValidFilename-test
UNI-22823 fix so ConvertToValideFilename test works on Mac
2 parents 0067b34 + 3a883f8 commit 9821330

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Assets/FbxExporters/Editor/UnitTests/ModelExporterTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,19 @@ public void TestConvertToValidFilename()
123123
// test invalid filenames
124124
filename = "?foo**bar///.fbx";
125125
result = FbxExporters.Editor.ModelExporter.ConvertToValidFilename (filename);
126+
#if UNITY_EDITOR_WIN
126127
Assert.AreEqual ("_foo__bar___.fbx", result);
128+
#else
129+
Assert.AreEqual ("?foo**bar___.fbx", result);
130+
#endif
127131

128132
filename = "foo$?ba%r 2.fbx";
129133
result = FbxExporters.Editor.ModelExporter.ConvertToValidFilename (filename);
134+
#if UNITY_EDITOR_WIN
130135
Assert.AreEqual ("foo$_ba%r 2.fbx", result);
136+
#else
137+
Assert.AreEqual ("foo$?ba%r 2.fbx", result);
138+
#endif
131139
}
132140
}
133141
}

0 commit comments

Comments
 (0)