Ejemplo n.º 1
0
            public void ThrowsForNoLink()
            {
                // Given
                TestDocument a = new TestDocument()
                {
                    { WebKeys.Xref, "fooBAR" }
                };
                TestExecutionContext context = new TestExecutionContext();

                context.Outputs.Dictionary.Add(
                    nameof(Content),
                    new IDocument[] { a }.ToImmutableArray());

                // When, Then
                Should.Throw <ExecutionException>(() => context.GetXrefLink("fizzbuzz"));
            }