public void Should_Use_Custom_Source_If_RelativeUri_Is_Used()
            {
                var fixture = new ChocolateyPackageInstallerFixture();

                fixture.Package = new PackageReference("choco:?package=windirstat");

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

                // Then
                Assert.Null(result);
                fixture.Config.Received().GetValue(CHOCOLATEY_CONFIGKEY);
            }
            public void Should_Throw_If_Install_Path_Is_Null()
            {
                // Given
                var fixture = new ChocolateyPackageInstallerFixture();

                fixture.InstallPath = null;

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

                // Then
                Assert.IsType <ArgumentNullException>(result);
                Assert.Equal("path", ((ArgumentNullException)result).ParamName);
            }