Exemple #1
0
            public void Should_Throw_If_Context_Is_Null()
            {
                // Given, When
                var result = Record.Exception(() => InnoSetupAliases.InnoSetup(null, "some file.iss"));

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

                // When
                var result = Record.Exception(() => InnoSetupAliases.InnoSetup(context, null));

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