aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-12-27 11:46:55 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-12-27 11:46:55 +0100
commit45a7a8a40da1231f00c2fcd15b370dabe71e3f8e (patch)
tree2e28725e931c60a937c6d386cde6ab5dd33890d7 /Tests
parentab207070b2755d07f89106611cf34da34970e529 (diff)
replace Debug.WriteLine with consoleMonoEmbed
Diffstat (limited to 'Tests')
-rw-r--r--Tests/BasicTests.cs6
-rw-r--r--Tests/GOLIBTest_DirViewer.cs2
-rw-r--r--Tests/OpenGL/Shader.cs14
-rw-r--r--Tests/OpenGL/Texture.cs2
-rw-r--r--Tests/Showcase.cs2
5 files changed, 13 insertions, 13 deletions
diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs
index 8d0a8026..a14b5154 100644
--- a/Tests/BasicTests.cs
+++ b/Tests/BasicTests.cs
@@ -202,7 +202,7 @@ namespace Tests
GraphicObject obj = Load (testFiles[idx]);
obj.DataSource = this;
} catch (Exception ex) {
- Debug.WriteLine (ex.Message + ex.InnerException);
+ Console.WriteLine (ex.Message + ex.InnerException);
}
}
// void Tv_SelectedItemChanged (object sender, SelectionChangeEventArgs e)
@@ -224,7 +224,7 @@ namespace Tests
// try {
// i = Instantiator.CreateFromImlFragment (e.Text);
// } catch (Exception ex) {
-// Debug.WriteLine (ex);
+// Console.WriteLine (ex);
// return;
// }
// lock (ifaceControl.CrowInterface.UpdateMutex) {
@@ -261,7 +261,7 @@ namespace Tests
NotifyValueChanged ("PropertyLessBinding", test);
}
void onNew(object sender, EventArgs e){
- Debug.WriteLine ("menu new clicked");
+ Console.WriteLine ("menu new clicked");
}
}
}
diff --git a/Tests/GOLIBTest_DirViewer.cs b/Tests/GOLIBTest_DirViewer.cs
index f17afb9b..966c3976 100644
--- a/Tests/GOLIBTest_DirViewer.cs
+++ b/Tests/GOLIBTest_DirViewer.cs
@@ -87,7 +87,7 @@ namespace test2
}
public void onMouseDown(object sender, MouseButtonEventArgs e)
{
- Debug.WriteLine (sender.ToString ());
+ Console.WriteLine (sender.ToString ());
}
void OnSelectedItemChanged (object sender, SelectionChangeEventArgs e)
{
diff --git a/Tests/OpenGL/Shader.cs b/Tests/OpenGL/Shader.cs
index 6ae99b89..02ea82f6 100644
--- a/Tests/OpenGL/Shader.cs
+++ b/Tests/OpenGL/Shader.cs
@@ -209,8 +209,8 @@ namespace Crow
GL.GetProgramInfoLog(pgmId, out info);
if (!string.IsNullOrEmpty (info)) {
- Debug.WriteLine ("Linkage:");
- Debug.WriteLine (info);
+ Console.WriteLine ("Linkage:");
+ Console.WriteLine (info);
}
info = null;
@@ -218,8 +218,8 @@ namespace Crow
GL.ValidateProgram(pgmId);
GL.GetProgramInfoLog(pgmId, out info);
if (!string.IsNullOrEmpty (info)) {
- Debug.WriteLine ("Validation:");
- Debug.WriteLine (info);
+ Console.WriteLine ("Validation:");
+ Console.WriteLine (info);
}
GL.UseProgram (pgmId);
@@ -302,14 +302,14 @@ namespace Crow
string info;
GL.GetShaderInfoLog(shader, out info);
- Debug.WriteLine(info);
+ Console.WriteLine(info);
int compileResult;
GL.GetShader(shader, ShaderParameter.CompileStatus, out compileResult);
if (compileResult != 1)
{
- Debug.WriteLine("Compile Error!");
- Debug.WriteLine(source);
+ Console.WriteLine("Compile Error!");
+ Console.WriteLine(source);
}
}
public override string ToString ()
diff --git a/Tests/OpenGL/Texture.cs b/Tests/OpenGL/Texture.cs
index ce24808b..1656ad00 100644
--- a/Tests/OpenGL/Texture.cs
+++ b/Tests/OpenGL/Texture.cs
@@ -60,7 +60,7 @@ namespace Crow
GL.GenerateMipmap (GenerateMipmapTarget.Texture2D);
} catch (Exception ex) {
- Debug.WriteLine ("Error loading texture: " + Map + ":" + ex.Message);
+ Console.WriteLine ("Error loading texture: " + Map + ":" + ex.Message);
}
}
}
diff --git a/Tests/Showcase.cs b/Tests/Showcase.cs
index 4880ede5..402f6ea9 100644
--- a/Tests/Showcase.cs
+++ b/Tests/Showcase.cs
@@ -114,7 +114,7 @@ namespace Tests
g.DataSource = this;
}
} catch (Exception ex) {
- System.Diagnostics.Debug.WriteLine (ex.ToString ());
+ System.Diagnostics.Console.WriteLine (ex.ToString ());
showError (ex);
}
}