diff options
Diffstat (limited to 'OpenSim/Framework/Console/MockConsole.cs')
-rw-r--r-- | OpenSim/Framework/Console/MockConsole.cs | 37 |
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 @@ | |||
1 | using System; | ||
2 | using System.Threading; | ||
3 | using System.Collections.Generic; | ||
4 | using System.Text; | ||
5 | |||
6 | namespace 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 | } | ||