Exemple #1
0
            public void ThrowsForNoMatch()
            {
                // 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.GetXrefDocument("fizzbuzz"));
            }