예제 #1
0
            public async void Should_Not_Throw_For_Default_Settings_For_Working_Directory()
            {
                // Given
                var context = new MkDocsContextFixture();

                // When
                var result = await(Record.ExceptionAsync(() => context.MkDocsServeAsync()) ?? Task.FromResult <Exception>(null));

                // Then
                Assert.Null(result);
            }
예제 #2
0
            public async void Should_Not_Throw_For_Defined_Settings()
            {
                // Given
                var context    = new MkDocsContextFixture();
                var settings   = new MkDocsServeAsyncSettings();
                var projectDir = new DirectoryPath("./project");

                // When
                var result = await(Record.ExceptionAsync(() => context.MkDocsServeAsync(projectDir, settings)) ?? Task.FromResult <Exception>(null));

                // Then
                Assert.Null(result);
            }