Skip to content

Commit 10449fb

Browse files
authored
Merge pull request #239 from Unity-Technologies/UNI-47629-Fixing_cs_console_app_unit_test
UNI-47629 Fixing unit test
2 parents 7bc59b7 + 730580f commit 10449fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/UnityTests/Assets/Editor/UseCaseTests/EditorDependancyTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public void TestCSharpConsoleApp()
6464
consoleApp.Start ();
6565

6666
StringBuilder error = new StringBuilder ();
67+
68+
error.Append (consoleApp.StandardError.ReadToEnd ());
6769
while (!consoleApp.HasExited) {
6870
error.Append (consoleApp.StandardError.ReadToEnd ());
6971
}
@@ -73,7 +75,6 @@ public void TestCSharpConsoleApp()
7375
Assert.IsTrue (errorString.Contains (
7476
"Unhandled Exception: System.TypeInitializationException: " +
7577
"The type initializer for 'Unity.FbxSdk.GlobalsPINVOKE' threw an exception"));
76-
Assert.IsTrue (errorString.Contains ("UnityEditor"));
7778
Assert.IsTrue (errorString.Contains ("InitFbxAllocators"));
7879
}
7980
}

0 commit comments

Comments
 (0)