예제 #1
0
            public void Should_Not_Throw_If_Parameters_Are_Set()
            {
                // Given
                var fixture = new SvnCleanUpFixture();

                // When
                fixture.CreateCleanUper();
            }
예제 #2
0
            public void Should_Throw_If_SvnClient_Is_Null()
            {
                // Given
                var fixture = new SvnCleanUpFixture
                {
                    GetSvnClient = null
                };

                // When
                // Then
                Assert.Throws <ArgumentNullException>("clientFactoryMethod", () => fixture.CreateCleanUper());
            }
예제 #3
0
            public void Should_Throw_If_Environment_Is_Null()
            {
                // Given
                var fixture = new SvnCleanUpFixture
                {
                    Environment = null
                };

                // When
                // Then
                Assert.Throws <ArgumentNullException>("environment", () => fixture.CreateCleanUper());
            }