示例#1
0
            public void Should_Throw_If_Process_Was_Not_Started()
            {
                // Given
                var fixture = new NuGetSourcesFixture();

                fixture.GivenProcessCannotStart();

                // When
                var result = Record.Exception(() => fixture.AddSources());

                // Then
                Assert.IsType <CakeException>(result);
                Assert.Equal("NuGet: Process was not started.", result.Message);
            }