aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/MockConsole.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Console/MockConsole.cs')
-rw-r--r--OpenSim/Framework/Console/MockConsole.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/MockConsole.cs b/OpenSim/Framework/Console/MockConsole.cs
new file mode 100644
index 0000000..9eb1977
--- /dev/null
+++ b/OpenSim/Framework/Console/MockConsole.cs
@@ -0,0 +1,37 @@
1using System;
2using System.Threading;
3using System.Collections.Generic;
4using System.Text;
5
6namespace OpenSim.Framework.Console
7{
8 /// <summary>
9 /// This is a Fake console that's used when setting up the Scene in Unit Tests
10 /// Don't use this except for Unit Testing or you're in for a world of hurt when the
11 /// sim gets to ReadLine
12 /// </summary>
13 public class MockConsole : CommandConsole
14 {
15 public MockConsole(string defaultPrompt) : base(defaultPrompt)
16 {
17 }
18 public override void Output(string text)
19 {
20 }
21 public override void Output(string text, string level)
22 {
23 }
24
25 public override string ReadLine(string p, bool isCommand, bool e)
26 {
27 //Thread.CurrentThread.Join(1000);
28 return string.Empty;
29 }
30 public override void UnlockOutput()
31 {
32 }
33 public override void LockOutput()
34 {
35 }
36 }
37}