Exemple #1
0
            public void Should_Throw_If_Cake_Context_Is_Null()
            {
                var result = Record.Exception(() => ProGetAssetAliases.ProGetDownloadAsset(null,
                                                                                           "http://localhost:9091/content/testdir/asset.gif", "./out/asset.gif", new ProGetConfiguration()));

                ExtraAssert.IsArgumentNullException(result, "context");
            }
Exemple #2
0
            public void Should_Throw_If_Cake_Context_Is_Null()
            {
                var result = Record.Exception(() =>
                                              ProGetAssetAliases.ProGetPushAsset(null, new FilePath("foo"), "http://foo.com", new ProGetConfiguration()));

                ExtraAssert.IsArgumentNullException(result, "context");
            }
            public void Should_Throw_If_Cake_Context_Is_Null()
            {
                // Given, When
                var result = Record.Exception(() => UniversalPackageAliases.UPackUnpack(null, new UniversalPackageUnpackSettings()));

                // Then
                ExtraAssert.IsArgumentNullException(result, "context");
            }
Exemple #4
0
            public void Should_Throw_If_Cake_Context_Is_Null()
            {
                var result = Record.Exception(() =>
                                              ProGetAssetAliases.ProGetCreateAssetDirectory(null, "http://localhost:9091/content/testdir",
                                                                                            new ProGetConfiguration()));

                ExtraAssert.IsArgumentNullException(result, "context");
            }
Exemple #5
0
        public void Should_Throw_If_Settings_Are_Null()
        {
            // Given
            var fixture = new UniversalPackagePackerFixture { Settings = null };

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

            // Then
            ExtraAssert.IsArgumentNullException(result, "settings");
        }
        public void Should_Throw_If_Resolver_Is_Null()
        {
            // Given
            var fixture = new UniversalPackagePusherFixture();

            fixture.Resolver = null;

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

            // Then
            ExtraAssert.IsArgumentNullException(result, "resolver");
        }
            public void Should_Throw_If_SourceDirectory_Is_Null()
            {
                var ex = Record.Exception(() => new UniversalPackagePackSettings("./path/to/file.uspec", null));

                ExtraAssert.IsArgumentNullException(ex, "sourceDirectory");
            }
            public void Should_Throw_If_Metadata_FilePath_Is_Null()
            {
                var ex = Record.Exception(() => new UniversalPackagePackSettings(null, "./folder"));

                ExtraAssert.IsArgumentNullException(ex, "metadataFilePath");
            }
            public void Should_Throw_If_TargetDirectory_Is_Null()
            {
                var ex = Record.Exception(() => new UniversalPackageInstallSettings("Test.Package", "http://proget.com/upack/feed", null));

                ExtraAssert.IsArgumentNullException(ex, "targetDirectory");
            }
            public void Should_Throw_If_TargetDirectory_Is_Null()
            {
                var ex = Record.Exception(() => new UniversalPackageUnpackSettings("./path/to/file.upack", null));

                ExtraAssert.IsArgumentNullException(ex, "targetDirectory");
            }