aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie2010-05-05 22:50:11 +0100
committerMelanie2010-05-05 22:50:11 +0100
commit7e0d5b866519a303490ee4c30b33c7598d99bbb1 (patch)
treeebe6627b312fb98e813ecc0d4adb98bf4fb36334 /OpenSim/Framework
parentPlumb Viewer version into ScenePresence for initial login. It's still not (diff)
parentStab a test fail (diff)
downloadopensim-SC_OLD-7e0d5b866519a303490ee4c30b33c7598d99bbb1.zip
opensim-SC_OLD-7e0d5b866519a303490ee4c30b33c7598d99bbb1.tar.gz
opensim-SC_OLD-7e0d5b866519a303490ee4c30b33c7598d99bbb1.tar.bz2
opensim-SC_OLD-7e0d5b866519a303490ee4c30b33c7598d99bbb1.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework')
-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}