public void ShowReturnsVisual() { var interpreter = new ScenePropertyInterpreter(); var result = interpreter.Interpret("*show", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); Assert.IsType <Visual>(result.Component); }
public void CreatesComponentCorrectly() { var interpreter = new ScenePropertyInterpreter(); var result = interpreter.Interpret("*then", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); var list = Assert.IsType <SceneInstructions>(result.Component); Assert.Empty(list.Instructions); }
public void CorrectlyIdentifiesFalseText() { var interpreter = new ScenePropertyInterpreter(); Assert.False(interpreter.CanInterpret("*nothen", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()))); }
public void IdentifiesShow() { var interpreter = new ScenePropertyInterpreter(); Assert.True(interpreter.CanInterpret("*say", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()))); }