Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void Should_return_true_if_normal_file()
 {
     _configuration.Stub(c => c.ShouldUseBinaryChangeIgnoreLists).Return(false);
     _configuration.Stub(c => c.WatchIgnoreList).Return(new string[] {});
     _validator
     .ShouldPublish(Path.GetTempFileName())
     .ShouldBeTrue();
 }