Пример #1
0
 public TestClass(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     IBalloonTextNodeParser balloonTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
     : base(elementParser, textSourceParser, balloonTextNodeParser, choiceNodeParser)
 {
 }
Пример #2
0
 public ThoughtChildNodeParser(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     IThoughtTextNodeParser thoughtTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
     : base(elementParser, textSourceParser, thoughtTextNodeParser, choiceNodeParser)
 {
 }
Пример #3
0
 public TutorialChildNodeParser(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     ITutorialTextNodeParser tutorialTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
     : base(elementParser, textSourceParser, tutorialTextNodeParser, choiceNodeParser)
 {
 }
Пример #4
0
 public SpeechChildNodeParser(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     ISpeechTextNodeParser speechTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
     : base(elementParser, textSourceParser, speechTextNodeParser, choiceNodeParser)
 {
 }
Пример #5
0
 public NarrationChildNodeParser(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     INarrationTextNodeParser narrationTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
     : base(elementParser, textSourceParser, narrationTextNodeParser, choiceNodeParser)
 {
 }
Пример #6
0
 public BalloonChildNodeParserBase(
     IElementParser elementParser,
     ITextSourceParser textSourceParser,
     IBalloonTextNodeParser balloonTextNodeParser,
     IChoiceNodeParser choiceNodeParser
     )
 {
     this.elementParser    = elementParser;
     this.textSourceParser = textSourceParser;
     this.childParser      = balloonTextNodeParser;
     Settings            = ElementParserSettings.AggregatedNonRepeat(balloonTextNodeParser);
     AggregationSettings = ElementParserSettings.AggregatedNonRepeat(choiceNodeParser);
 }
Пример #7
0
    public BalloonChildNodeParserBaseTests()
    {
        textSource = A.Dummy <ITextSource>();
        var textSourceParserResult = A.Fake <ITextSourceParserResult>(i => i.Strict());

        A.CallTo(() => textSourceParserResult.IsError).Returns(false);
        A.CallTo(() => textSourceParserResult.TextSource).Returns(textSource);

        textSourceParser = A.Fake <ITextSourceParser>(i => i.Strict());
        A.CallTo(() => textSourceParser.Parse(A <string> .Ignored)).Returns(textSourceParserResult);

        elementParser         = A.Fake <IElementParser>(i => i.Strict());
        balloonTextNodeParser = Helper.FakeParser <IBalloonTextNodeParser>("xyz");
        A.CallTo(() => balloonTextNodeParser.BalloonType).Returns(balloonType);
        choiceNodeParser = Helper.FakeParser <IChoiceNodeParser>("choice");
        sut = new (elementParser, textSourceParser, balloonTextNodeParser, choiceNodeParser);
    }