public void _Setup()
            {
                _mocks = new MockRepository();

                var fileService = _mocks.Stub<IFileSystemService>();
                SetupResult.For(fileService.GetSpecificFile(FIRSTFILE)).Return(new FileInfo(FIRSTFILE));
                SetupResult.For(fileService.GetSpecificFile(SECONDFILE)).Return(new FileInfo(SECONDFILE));
                SetupResult.For(fileService.GetSpecificFile(THIRDFILE)).Return(new FileInfo(THIRDFILE));

                _mocks.ReplayAll();

                _manager = new ScriptManager(fileService);

                _manager.AddSingle(FIRSTFILE);
                _manager.AddSingle(SECONDFILE);
                _manager.AddSingle(THIRDFILE);
            }
            public void _Setup()
            {
                _theFileSpec = "file1.sql";

                _mocks = new MockRepository();

                var fileService = _mocks.Stub<IFileSystemService>();
                SetupResult.For(fileService.GetSpecificFile(_theFileSpec)).Return(new FileInfo(_theFileSpec));

                _mocks.ReplayAll();

                _manager = new ScriptManager(fileService);
                _manager.AddSingle(_theFileSpec);
            }
            public void All_Scripts_Are_Removed()
            {
                const string FIRSTFILE = "file1.sql";
                const string SECONDFILE = "file2.sql";

                var mocks = new MockRepository();

                var fileService = mocks.Stub<IFileSystemService>();
                SetupResult.For(fileService.GetSpecificFile(FIRSTFILE)).Return(new FileInfo(FIRSTFILE));
                SetupResult.For(fileService.GetSpecificFile(SECONDFILE)).Return(new FileInfo(SECONDFILE));

                mocks.ReplayAll();

                var manager = new ScriptManager(fileService);

                manager.AddSingle(FIRSTFILE);
                manager.AddSingle(SECONDFILE);

                Assert.IsNotEmpty(manager.Scripts);

                manager.ClearAll();

                Assert.IsEmpty(manager.Scripts);
            }