Пример #1
0
            public void Should_Throw_If_Context_Is_Null()
            {
                // When
                var result = Record.Exception(() => VSWhereAliases.VSWhereAll(null));

                // Then
                Assert.IsArgumentNullException(result, "context");
            }
Пример #2
0
            public void Should_Throw_If_Products_Are_Null()
            {
                // Given
                var context = Substitute.For <ICakeContext>();

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

                // Then
                Assert.IsArgumentNullException(result, "products");
            }
Пример #3
0
            public void Should_Throw_If_Settings_Is_Null()
            {
                // Given
                var context = Substitute.For <ICakeContext>();

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

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