public void SetUp()
        {
			_configuration = MockRepository.GenerateMock<IConfiguration>();
            _ignoreProvider = MockRepository.GenerateMock<ICustomIgnoreProvider>();
            _ignoreProvider.Stub(i => i.ShouldPublish("")).IgnoreArguments().Return(true);
            var providers = new ICustomIgnoreProvider[] { _ignoreProvider };
            _validator = new WatchValidator(_configuration, providers);
        }
        public void Should_use_custom_providers_on_binary_run()
        {
            var ignoreProvider = MockRepository.GenerateMock<ICustomIgnoreProvider>();
            var providers = new ICustomIgnoreProvider[] { ignoreProvider };
            var validator = new WatchValidator(_configuration, providers);

            _configuration.Stub(c => c.ShouldUseBinaryChangeIgnoreLists).Return(true);
            _configuration.Stub(c => c.WatchIgnoreList).Return(new string[] { });
            validator.ShouldPublish(@"C:\Somedirectory\src\myfolder\another\obj\meh.mm.dll").ShouldBeFalse();
        }
Пример #3
0
 public void SetUp()
 {
     _validator = new WatchValidator();
 }
Пример #4
0
        public void SetUp()
        {
			_configuration = MockRepository.GenerateMock<IConfiguration>();
            _validator = new WatchValidator(_configuration);
        }