public void Should_Set_Vacuum_Pristines_By_Default() { // Given, When var settings = new SvnCleanUpSettings(); // Then Assert.True(settings.VacuumPristines); }
public void Should_Set_Fix_Time_Stamps_By_Default() { // Given, When var settings = new SvnCleanUpSettings(); // Then Assert.True(settings.FixTimeStamps); }
public void Should_Not_Set_Include_Externals_By_Default() { // Given, When var settings = new SvnCleanUpSettings(); // Then Assert.False(settings.IncludeExternals); }
public void Should_Set_Clear_Dav_Cache_By_Default() { // Given, When var settings = new SvnCleanUpSettings(); // Then Assert.True(settings.ClearDavCache); }
public void Should_Set_Break_Locks_By_Default() { // Given, When var settings = new SvnCleanUpSettings(); // Then Assert.True(settings.BreakLocks); }
internal SvnCleanUpFixture() { Environment = Substitute.For <ICakeEnvironment>(); SvnClient = Substitute.For <ISvnClient>(); Settings = new SvnCleanUpSettings(); DirectoryPath = new DirectoryPath(@"C:\test\"); GetSvnClient = () => SvnClient; }
/// <inheritdoc/> public bool CleanUp(string directoryPath, SvnCleanUpSettings settings) { return(CleanUp(directoryPath, settings.ToSvnCleanUpArgs())); }
public static bool SvnCleanUp(this ICakeContext context, DirectoryPath directory, SvnCleanUpSettings settings) { var cleaner = new SvnCleaner(context.Environment, SvnClientFactoryMethod); return(cleaner.CleanUp(directory, settings)); }