public void SetUp()
        {
            File.Delete(ProjectPath);

            _mockRepository              = new MockRepository();
            _inputFile1                  = MockRepository.GenerateStub <IInputFile>();
            _inputFile2                  = MockRepository.GenerateStub <IInputFile>();
            _detector1                   = MockRepository.GenerateStub <IDetector>();
            _detector2                   = MockRepository.GenerateStub <IDetector>();
            _dataBlock1                  = MockRepository.GenerateStub <IDataBlock>();
            _dataBlock2                  = MockRepository.GenerateStub <IDataBlock>();
            _dataBlock3                  = MockRepository.GenerateStub <IDataBlock>();
            _columnInfo1                 = MockRepository.GenerateStub <IColumnInfo>();
            _columnInfo2                 = MockRepository.GenerateStub <IColumnInfo>();
            _updatedColumnInfo           = MockRepository.GenerateStub <IColumnInfo>();
            _projectChangedEventHandler  = _mockRepository.StrictMock <EventHandler <ProjectChangedEventArgs> >();
            _propertyChangedEventHandler = _mockRepository.StrictMock <PropertyChangedEventHandler>();
            _createInputFile             = MockRepository.GenerateStub <Creator <IInputFile, IProject, string> >();

            _inputFile1.Stub(x => x.Name).Return(FileName1);
            _inputFile2.Stub(x => x.Name).Return(FileName2);
            _dataBlock1.Stub(x => x.InputFile).Return(_inputFile1);
            _dataBlock2.Stub(x => x.InputFile).Return(_inputFile2);
            _dataBlock3.Stub(x => x.InputFile).Return(_inputFile2);
            _columnInfo1.Stub(x => x.Name).Return(ColumnName1);
            _columnInfo1.Stub(x => x.Width).Return(ColumnWidth1);
            _columnInfo2.Stub(x => x.Name).Return(ColumnName2);
            _columnInfo2.Stub(x => x.Width).Return(ColumnWidth2);

            _project = new Project(_createInputFile, ProjectPath);

            _createInputFile.Stub(x => x(_project, FileName1)).Return(_inputFile1);
            _createInputFile.Stub(x => x(_project, FileName2)).Return(_inputFile2);
        }
        public void SetUp()
        {
            File.Delete(ProjectPath);

            _mockRepository    = new MockRepository();
            _inputFile1        = MockRepository.GenerateStub <IInputFile>();
            _inputFile2        = MockRepository.GenerateStub <IInputFile>();
            _detector1         = MockRepository.GenerateStub <IDetector>();
            _detector2         = MockRepository.GenerateStub <IDetector>();
            _dataBlock1        = MockRepository.GenerateStub <IDataBlock>();
            _dataBlock2        = MockRepository.GenerateStub <IDataBlock>();
            _dataBlock3        = MockRepository.GenerateStub <IDataBlock>();
            _columnInfo1       = MockRepository.GenerateStub <IColumnInfo>();
            _columnInfo2       = MockRepository.GenerateStub <IColumnInfo>();
            _updatedColumnInfo = MockRepository.GenerateStub <IColumnInfo>();
            _createInputFile   = MockRepository.GenerateStub <Creator <IInputFile, IProject, string> >();

            _inputFile1.Stub(x => x.Name).Return(DummyFileName);
            _inputFile1.Stub(x => x.Length).Return(DummyFileLength);
            _inputFile2.Stub(x => x.Name).Return(EmptyFileName);
            _inputFile2.Stub(x => x.Length).Return(EmptyFileLength);
            _dataBlock1.Stub(x => x.InputFile).Return(_inputFile1);
            _dataBlock2.Stub(x => x.InputFile).Return(_inputFile2);
            _dataBlock3.Stub(x => x.InputFile).Return(_inputFile2);
            _columnInfo1.Stub(x => x.Name).Return(ColumnName1);
            _columnInfo1.Stub(x => x.Width).Return(ColumnWidth1);
            _columnInfo2.Stub(x => x.Name).Return(ColumnName2);
            _columnInfo2.Stub(x => x.Width).Return(ColumnWidth2);

            _project = new Project(_createInputFile, ProjectPath);

            _createInputFile.Stub(x => x(_project, FileName1)).Return(_inputFile1);
            _createInputFile.Stub(x => x(_project, FileName2)).Return(_inputFile2);
        }