Exemple #1
0
            public void Should_Throw_If_Context_Is_Null()
            {
                // Given
                var fixture = new HeatFixture();

                // When
                var result = Record.Exception(() => WiXAliases.WiXHeat(null, fixture.DirectoryPath, fixture.OutputFile, fixture.HarvestType));

                // Then
                Assert.IsArgumentNullException(result, "context");
            }
Exemple #2
0
            public void Should_Throw_If_Directory_Path_Is_Null()
            {
                // Given
                var fixture = new HeatFixture();
                var context = Substitute.For <ICakeContext>();

                // When
                var result = Record.Exception(() => WiXAliases.WiXHeat(context, null, fixture.OutputFile));

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