public IEnumerable <Proposal> Propose(CompilerState state) { var acronyms = AcronymVariables.Acronyms.Get(state.Document) ?? throw new InvalidOperationException(); foreach (var(name, full) in acronyms) { yield return(new Proposal(name) { Info = ParagraphConverter.ToString(full) }); } }
public void ParagraphConverterCallsInlineConverterTest() { var testInlineParser = new TestInlineParser(); var logger = loggerMockFactory.Get <ParagraphConverter>().Object; ParagraphConverter converter = new ParagraphConverter(testInlineParser, logger); var paragraph = new ParagraphBlock(); converter.Execute(paragraph); Assert.True(testInlineParser.ParseCalled); }