示例#1
0
 public ChoiceOptionEnabledWhenNodeParserTest()
 {
     elementParser     = A.Fake <IElementParser>(i => i.Strict());
     balloonTextParser = A.Dummy <IBalloonTextParser>();
     conditionParser   = A.Fake <IConditionParser>(i => i.Strict());
     sut = new(elementParser, balloonTextParser, conditionParser);
 }
示例#2
0
 public ChoiceOptionDisabledTextNodeParser(
     IElementParser elementParser,
     IBalloonTextParser balloonTextParser
     )
 {
     this.elementParser = elementParser;
     Settings           = ElementParserSettings.Normal(balloonTextParser);
 }
示例#3
0
 public ChoiceOptionNodeParserTests()
 {
     elementParser                      = A.Fake <IElementParser>(i => i.Strict());
     whenAttributeParser                = A.Dummy <IWhenAttributeParser>();
     balloonTextParser                  = A.Dummy <IBalloonTextParser>();
     choiceOptionTextNodeParser         = Helper.FakeParser <IChoiceOptionTextNodeParser>("a");
     choiceOptionEnabledWhenNodeParser  = Helper.FakeParser <IChoiceOptionEnabledWhenNodeParser>("enabledwhen");
     choiceOptionDisabledTextNodeParser = Helper.FakeParser <IChoiceOptionDisabledTextNodeParser>("disabledtext");
     choiceOptionIconNodeParser         = Helper.FakeParser <IChoiceOptionIconNodeParser>("icon");
     sut = new(
         elementParser,
         whenAttributeParser,
         balloonTextParser,
         choiceOptionTextNodeParser,
         choiceOptionEnabledWhenNodeParser,
         choiceOptionDisabledTextNodeParser,
         choiceOptionIconNodeParser
         );
 }
示例#4
0
    public ChoiceOptionNodeParser(
        IElementParser elementParser,
        IWhenAttributeParser whenAttributeParser,
        IBalloonTextParser balloonTextParser,
        IChoiceOptionTextNodeParser choiceOptionTextNodeParser,
        IChoiceOptionEnabledWhenNodeParser choiceOptionEnabledWhenNodeParser,
        IChoiceOptionDisabledTextNodeParser choiceOptionDisabledTextNodeParser,
        IChoiceOptionIconNodeParser choiceOptionIconNodeParser
        )
    {
        this.elementParser = elementParser;

        Settings = ElementParserSettings.NonRepeat(
            whenAttributeParser,
            balloonTextParser,
            choiceOptionTextNodeParser,
            choiceOptionEnabledWhenNodeParser,
            choiceOptionDisabledTextNodeParser,
            choiceOptionIconNodeParser
            );
    }
示例#5
0
 public NarrationTextNodeParser(IElementParser elementParser, IBalloonTextParser balloonTextParser)
     : base(elementParser, balloonTextParser)
 {
 }
示例#6
0
 public ChoiceOptionDisabledTextNodeParserTest()
 {
     elementParser     = A.Fake <IElementParser>(i => i.Strict());
     balloonTextParser = A.Dummy <IBalloonTextParser>();
     sut = new(elementParser, balloonTextParser);
 }
示例#7
0
 public TutorialTextNodeParser(IElementParser elementParser, IBalloonTextParser balloonTextParser)
     : base(elementParser, balloonTextParser)
 {
 }
示例#8
0
 public SpeechTextNodeParser(IElementParser elementParser, IBalloonTextParser balloonTextParser)
     : base(elementParser, balloonTextParser)
 {
 }
示例#9
0
 public ThoughtTextNodeParser(IElementParser elementParser, IBalloonTextParser balloonTextParser)
     : base(elementParser, balloonTextParser)
 {
 }
示例#10
0
 public ChoiceOptionEnabledWhenNodeParser(IElementParser elementParser, IBalloonTextParser textParser, IConditionParser conditionParser)
 {
     this.elementParser   = elementParser;
     this.conditionParser = conditionParser;
     Settings             = ElementParserSettings.Normal(textParser);
 }