public void UnflagCorrectlyIdentifiesText() { var interpreter = new FlagInterpreter(); var context = new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()); context.Components.Push(new SceneInstructions()); Assert.True(interpreter.CanInterpret("unflag test", context)); }
public void UnflagCreatesComponentCorrectly() { var interpreter = new FlagInterpreter(); var result = interpreter.Interpret("unflag test", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); var instruction = Assert.IsType <Unflag>(result.Component); Assert.Equal("test", instruction.Variable); }
public void UnflagCorrectlyIdentifiesFalUnflagext() { var interpreter = new FlagInterpreter(); Assert.False(interpreter.CanInterpret("unflags test", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()))); }