public void SetUp() { theGameState = new StubGameState(); theGameServer = new StubGameServer(theGameState); theScriptLog = new InMemoryScriptLog(); theCommandProcessor = new StubCommandProcessor(); theServices = new InMemoryServiceLocator(); theServices.Add<IGameServer>(theGameServer); theServices.Add<IScriptLog>(theScriptLog); theServices.Add<ICommandProcessor>(theCommandProcessor); theScriptContext = new ScriptContext("1", "gototoken", CancellationToken.None, theServices, null); theScriptContext.DebugLevel = 5; theHandler = new GotoTokenHandler(); }
public void SetUp() { theGameState = new StubGameState(); theGameServer = new StubGameServer(theGameState); theScriptLog = new InMemoryScriptLog(); theCommandProcessor = new StubCommandProcessor(); theServices = new InMemoryServiceLocator(); theServices.Add<IGameServer>(theGameServer); theServices.Add<IScriptLog>(theScriptLog); theServices.Add<ICommandProcessor>(theCommandProcessor); theLocalVars = new SimpleDictionary<string, string>(); theScriptContext = new ScriptContext("1", "containsre", CancellationToken.None, theServices, theLocalVars); theScriptContext.DebugLevel = 5; theHandler = new ContainsReTokenHandler(); }