Пример #1
0
            public void Should_Set_Vacuum_Pristines_By_Default()
            {
                // Given, When
                var settings = new SvnCleanUpSettings();

                // Then
                Assert.True(settings.VacuumPristines);
            }
Пример #2
0
            public void Should_Set_Fix_Time_Stamps_By_Default()
            {
                // Given, When
                var settings = new SvnCleanUpSettings();

                // Then
                Assert.True(settings.FixTimeStamps);
            }
Пример #3
0
            public void Should_Not_Set_Include_Externals_By_Default()
            {
                // Given, When
                var settings = new SvnCleanUpSettings();

                // Then
                Assert.False(settings.IncludeExternals);
            }
Пример #4
0
            public void Should_Set_Clear_Dav_Cache_By_Default()
            {
                // Given, When
                var settings = new SvnCleanUpSettings();

                // Then
                Assert.True(settings.ClearDavCache);
            }
Пример #5
0
            public void Should_Set_Break_Locks_By_Default()
            {
                // Given, When
                var settings = new SvnCleanUpSettings();

                // Then
                Assert.True(settings.BreakLocks);
            }
Пример #6
0
 internal SvnCleanUpFixture()
 {
     Environment   = Substitute.For <ICakeEnvironment>();
     SvnClient     = Substitute.For <ISvnClient>();
     Settings      = new SvnCleanUpSettings();
     DirectoryPath = new DirectoryPath(@"C:\test\");
     GetSvnClient  = () => SvnClient;
 }
Пример #7
0
 /// <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));
        }