public void Should_return_nothing_when_invalid_condition()
 {
     var fs = new FakeFileSystemService();
     fs.WhenCrawlingFor("some search pattern").Return("a project file");
     var files = fs.GetFiles("", "some other search pattern");
     files.Length.ShouldEqual(0);
 }
        public void setUp()
        {
			_bus = MockRepository.GenerateMock<IMessageBus>();
            _fsService = new FakeFileSystemService();
            _cache = new FakeCache();
            _crawler = new ProjectCrawler(_cache, _fsService, _bus);
        }
 public void Should_return_on_condition()
 {
     var fs = new FakeFileSystemService();
     fs.WhenCrawlingFor("some search pattern").Return("a project file");
     var files = fs.GetFiles("", "some search pattern");
     files[0].ShouldEqual("a project file");
 }
        public void Should_return_nothing_when_invalid_condition()
        {
            var fs = new FakeFileSystemService();

            fs.WhenCrawlingFor("some search pattern").Return("a project file");
            var files = fs.GetFiles("", "some other search pattern");

            files.Length.ShouldEqual(0);
        }
        public void Should_return_on_condition()
        {
            var fs = new FakeFileSystemService();

            fs.WhenCrawlingFor("some search pattern").Return("a project file");
            var files = fs.GetFiles("", "some search pattern");

            files[0].ShouldEqual("a project file");
        }
 public void SetUp()
 {
     _fs = new FakeFileSystemService();
     _parser = new ProjectParser(_fs);
 }
 public void SetUp()
 {
     _config = MockRepository.GenerateMock<IConfiguration>();
     _fs = new FakeFileSystemService();
     _parser = new ProjectParser(_fs, _config);
 }