Skip to content

Commit e601e59

Browse files
author
Benoit Hudson
committed
Fix unit test for windows.
Also stop the coverage test.
1 parent c76a0bb commit e601e59

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Assets/FbxExporters/Editor/UnitTests/FbxExportSettingsTest.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ static FbxExportSettingsTest() {
3131
Assert.IsNotNull(s_InstanceField, "s_Instance");
3232
}
3333

34-
#if ENABLE_COVERAGE_TEST
35-
[Test]
36-
public void TestCoverage()
37-
{
38-
FbxSdk.CoverageTester.TestCoverage(typeof(ExportSettings), this.GetType());
39-
}
40-
#endif
41-
4234
[NUnit.Framework.SetUp]
4335
public void SetUp()
4436
{
@@ -169,8 +161,9 @@ public void TestGetSetFields()
169161
Assert.AreEqual(ExportSettings.kDefaultSavePath, defaultRelativePath);
170162

171163
var defaultAbsolutePath = ExportSettings.GetAbsoluteSavePath();
172-
Assert.AreEqual(Path.Combine(Application.dataPath, ExportSettings.kDefaultSavePath),
173-
defaultAbsolutePath);
164+
var dataPath = Path.Combine(Application.dataPath, ExportSettings.kDefaultSavePath)
165+
.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
166+
Assert.AreEqual(dataPath, defaultAbsolutePath);
174167

175168
// set; check that the saved value is platform-independent,
176169
// that the relative path uses / like in unity,

0 commit comments

Comments
 (0)