From eacbdff63f82c43b9a31c729ecd32d333c69015d Mon Sep 17 00:00:00 2001 From: Chris Gregan Date: Tue, 22 Aug 2017 08:13:35 +0100 Subject: [PATCH] Fixed Unity Test Tools running in Unity 2017.1 --- .../TestRunner/Editor/GuiHelper.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/GuiHelper.cs b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/GuiHelper.cs index a35327f3..808c27f4 100644 --- a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/GuiHelper.cs +++ b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/GuiHelper.cs @@ -13,19 +13,20 @@ namespace UnityTest { public static bool GetConsoleErrorPause() { - Assembly assembly = Assembly.GetAssembly(typeof(SceneView)); - Type type = assembly.GetType("UnityEditorInternal.LogEntries"); - PropertyInfo method = type.GetProperty("consoleFlags"); - var result = (int)method.GetValue(new object(), new object[] { }); - return (result & (1 << 2)) != 0; + return false; +// Assembly assembly = Assembly.GetAssembly(typeof(SceneView)); +// Type type = assembly.GetType("UnityEditorInternal.LogEntries"); +// PropertyInfo method = type.GetProperty("consoleFlags"); +// var result = (int)method.GetValue(new object(), new object[] { }); +// return (result & (1 << 2)) != 0; } public static void SetConsoleErrorPause(bool b) { - Assembly assembly = Assembly.GetAssembly(typeof(SceneView)); - Type type = assembly.GetType("UnityEditorInternal.LogEntries"); - MethodInfo method = type.GetMethod("SetConsoleFlag"); - method.Invoke(new object(), new object[] { 1 << 2, b }); +// Assembly assembly = Assembly.GetAssembly(typeof(SceneView)); +// Type type = assembly.GetType("UnityEditorInternal.LogEntries"); +// MethodInfo method = type.GetMethod("SetConsoleFlag"); +// method.Invoke(new object(), new object[] { 1 << 2, b }); } } }