diff options
author | Teravus Ovares (Dan Olivares) | 2010-05-04 22:13:25 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2010-05-04 22:13:25 -0400 |
commit | f005e570aa85fba4e2f82094f9d795db52895eeb (patch) | |
tree | 997f70be50c295c646172a2b4b4f9dc87b05e280 /OpenSim/Framework/Console/MockConsole.cs | |
parent | Add perms check to the teleport home client command handlers. (diff) | |
download | opensim-SC-f005e570aa85fba4e2f82094f9d795db52895eeb.zip opensim-SC-f005e570aa85fba4e2f82094f9d795db52895eeb.tar.gz opensim-SC-f005e570aa85fba4e2f82094f9d795db52895eeb.tar.bz2 opensim-SC-f005e570aa85fba4e2f82094f9d795db52895eeb.tar.xz |
* This should fix the tests failing because of a MainConsole.Instance null reference
* Added a MockConsole that doesn't require a handle to System.Console
Diffstat (limited to 'OpenSim/Framework/Console/MockConsole.cs')
-rw-r--r-- | OpenSim/Framework/Console/MockConsole.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/MockConsole.cs b/OpenSim/Framework/Console/MockConsole.cs new file mode 100644 index 0000000..57c56f1 --- /dev/null +++ b/OpenSim/Framework/Console/MockConsole.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | using System; | ||
2 | using System.Threading; | ||
3 | using System.Collections.Generic; | ||
4 | using System.Text; | ||
5 | |||
6 | namespace OpenSim.Framework.Console | ||
7 | { | ||
8 | public class MockConsole : CommandConsole | ||
9 | { | ||
10 | public MockConsole(string defaultPrompt) : base(defaultPrompt) | ||
11 | { | ||
12 | } | ||
13 | public override void Output(string text) | ||
14 | { | ||
15 | } | ||
16 | public override void Output(string text, string level) | ||
17 | { | ||
18 | } | ||
19 | |||
20 | public override string ReadLine(string p, bool isCommand, bool e) | ||
21 | { | ||
22 | //Thread.CurrentThread.Join(1000); | ||
23 | return string.Empty; | ||
24 | } | ||
25 | public override void UnlockOutput() | ||
26 | { | ||
27 | } | ||
28 | public override void LockOutput() | ||
29 | { | ||
30 | } | ||
31 | } | ||
32 | } | ||