public void Should_Throw_If_Source_Is_Null(string source) { var ex = Record.Exception(() => new UniversalPackageInstallSettings("Test.Package", source, "./folder")); ExtraAssert.IsArgumentException(ex, "source", "Value cannot be null or empty."); }
public void Should_Throw_If_TargetDirectory_Is_Null() { var ex = Record.Exception(() => new UniversalPackagePushSettings("./path/to/file.upack", null)); ExtraAssert.IsArgumentException(ex, "target", "Value cannot be null or empty."); }
public void Should_Throw_If_Package_Is_Null_Or_Empty(string package) { var ex = Record.Exception(() => new UniversalPackageInstallSettings(package, "http://proget.com/upack/feed", "./folder")); ExtraAssert.IsArgumentException(ex, "package", "Value cannot be null or empty."); }