public void Focus() { _lines = new List<string>(); bool madeActive = false; RelayTwo relay = new RelayTwo(); relay.CreateTable(DialogueNode.TABLE_NAME); DialogueRunner dialogueRunner = new DialogueRunner(relay, Language.DEFAULT); dialogueRunner.AddOnSomeoneSaidSomethingListener(OnSomeoneSaidSomething); dialogueRunner.logger.AddListener(LogDialogueRunner); dialogueRunner.AddFocusConversationListener((string pConversation) => { if(pConversation == "conversation23") { madeActive = true; } }); DialogueScriptLoader scriptLoader = new DialogueScriptLoader(dialogueRunner); scriptLoader.LoadDialogueNodesFromFile("../conversations/conversation23.dia"); DialogueScriptPrinter scriptPrinter = new DialogueScriptPrinter(dialogueRunner); scriptPrinter.PrintConversation("conversation23"); dialogueRunner.StartConversation("conversation23"); for(int i = 0; i < 500; i++) { dialogueRunner.Update(1.0f); } Assert.IsTrue(madeActive); }