Beispiel #1
0
            public void Should_Not_Be_Able_To_Install_If_Scheme_Is_Incorrect()
            {
                // Given
                var fixture = new NuGetPackageInstallerFixture();

                fixture.Package = new PackageReference("homebrew:?package=Cake.Core");

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

                // Then
                Assert.False(result);
            }
Beispiel #2
0
            public void Should_Throw_If_URI_Is_Null()
            {
                // Given
                var fixture = new NuGetPackageInstallerFixture();

                fixture.Package = null;

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

                // Then
                Assert.IsArgumentNullException(result, "package");
            }