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"); }
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"); }