Beispiel #1
0
            public void Should_Throw_If_Context_Is_Null()
            {
                // When
                var result = Record.Exception(() => VSWhereAliases.VSWhereLegacy(null, true));

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

                // When
                var result = Record.Exception(() => VSWhereAliases.VSWhereLegacy(context, null));

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