11using Microsoft . VisualStudio . TestTools . UnitTesting ;
22using RoboSharp ;
3- using RoboSharp . Extensions ;
4- using RoboSharp . Extensions . Tests ;
53using RoboSharp . Interfaces ;
64using RoboSharp . Results ;
75using RoboSharp . UnitTests ;
@@ -54,9 +52,28 @@ internal static class SourceTree
5452 public const int TotalFiles = DirsWithFiles * FilesPerDir ; // 20
5553 }
5654
55+ // ══════════════════════════════════════════════════════════════════════════
56+ //
57+ // RoboCommand_Tests
58+ //
59+ // Runs the full CommandTests suite against the real RoboCopy process.
60+ // If these tests pass, the expected counts in CommandTests<T> are correct.
61+ // If they fail, fix the SourceTree constants or test expectations first
62+ // before debugging any custom implementation.
63+ //
64+ // ══════════════════════════════════════════════════════════════════════════
5765 [ TestClass ]
58- public class RoboCommandTests : CommandTests < RoboCommand > { }
59-
66+ public class RoboCommand_Tests : CommandTests < RoboCommand >
67+ {
68+ protected override RoboCommand GetCommand ( string source , string destination )
69+ {
70+ var cmd = new RoboCommand ( ) ;
71+ cmd . CopyOptions . Source = source ;
72+ cmd . CopyOptions . Destination = destination ;
73+ return cmd ;
74+ }
75+ }
76+
6077 // ══════════════════════════════════════════════════════════════════════════
6178 //
6279 // CommandTests<T>
@@ -671,31 +688,9 @@ public async Task DirectoryExclusion_ExcludesMatchingDirs()
671688 expectedFileExtras : 0 , expectedFileSkipped : 0 ) ;
672689 }
673690 }
691+
674692
675-
676- // ══════════════════════════════════════════════════════════════════════════
677- //
678- // RoboCommand_Tests
679- //
680- // Runs the full CommandTests suite against the real RoboCopy process.
681- // If these tests pass, the expected counts in CommandTests<T> are correct.
682- // If they fail, fix the SourceTree constants or test expectations first
683- // before debugging any custom implementation.
684- //
685- // ══════════════════════════════════════════════════════════════════════════
686- [ TestClass ]
687- public class RoboCommand_Tests : CommandTests < RoboCommand >
688- {
689- protected override RoboCommand GetCommand ( string source , string destination )
690- {
691- var cmd = new RoboCommand ( ) ;
692- cmd . CopyOptions . Source = source ;
693- cmd . CopyOptions . Destination = destination ;
694- return cmd ;
695- }
696- }
697-
698-
693+ /*
699694 // ══════════════════════════════════════════════════════════════════════════
700695 //
701696 // RoboCommandPortable_CommandTests
@@ -716,6 +711,7 @@ protected override RoboCommandPortable GetCommand(string source, string destinat
716711 return cmd;
717712 }
718713 }
714+ +*/
719715}
720716
721717#endif
0 commit comments