public void Should_Not_Throw_If_Parameters_Are_Set() { // Given var fixture = new SvnCleanUpFixture(); // When fixture.CreateCleanUper(); }
public void Should_Throw_If_SvnClient_Is_Null() { // Given var fixture = new SvnCleanUpFixture { GetSvnClient = null }; // When // Then Assert.Throws <ArgumentNullException>("clientFactoryMethod", () => fixture.CreateCleanUper()); }
public void Should_Throw_If_Environment_Is_Null() { // Given var fixture = new SvnCleanUpFixture { Environment = null }; // When // Then Assert.Throws <ArgumentNullException>("environment", () => fixture.CreateCleanUper()); }