Exemplo n.º 1
0
        public void Should_Throw_If_Metadata_SourceDirectory_Does_Not_Exist()
        {
            // Given
            var fixture = new UniversalPackagePackerFixture { Settings = { SourceDirectory = "./path/does/not/exist" } };

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

            // Then
            ExtraAssert.IsCakeExceptionWithMessage(result, s => s.StartsWith("Source directory does not exist at"));
        }
Exemplo n.º 2
0
        public void Should_Throw_If_Metadata_FilePath_Does_Not_Exist()
        {
            // Given
            var fixture = new UniversalPackagePackerFixture { Settings = { MetadataFilePath = "./path/does/not/exist.uspec" } };

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

            // Then
            ExtraAssert.IsCakeExceptionWithMessage(result, s => s.StartsWith("Metadata file does not exist at"));
        }
        public void Should_Throw_If_Package_File_Does_Not_Exist()
        {
            // Given
            var fixture = new UniversalPackageUnpackerFixture {
                Settings = { Package = "./path/does/not/exist.upack" }
            };

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

            // Then
            ExtraAssert.IsCakeExceptionWithMessage(result, s => s.StartsWith("Universal package file does not exist at"));
        }