예제 #1
0
        public void Should_Throw_If_Install_Path_Is_Null()
        {
            // Given
            var fixture = new PaketPackageInstallerFixture {
                InstallPath = null
            };

            // When
            Action result = () => fixture.Install();

            // Then
            result.ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("path");
        }
예제 #2
0
        public void Should_Throw_If_Log_Is_Null()
        {
            // Given
            var fixture = new PaketPackageInstallerFixture {
                Log = null
            };

            // When
            Action result = () => fixture.CreateInstaller();

            // Then
            result.ShouldThrow <ArgumentNullException>().And.ParamName.Should().Be("log");
        }
예제 #3
0
        public void Should_Not_Be_Able_To_Install_If_Scheme_Is_Incorrect()
        {
            // Given
            var fixture = new PaketPackageInstallerFixture {
                Package = new PackageReference("homebrew:?package=Cake.Core")
            };

            // When
            var result = fixture.CanInstall();

            // Then
            result.Should().BeFalse();
        }