private void addToBuffer(ChangedFile file)
        {
            if (!_validator.ShouldPublish(file.FullName))
                return;

            lock (_padLock)
            {
                if (_buffer.FindIndex(0, f => f.FullName.Equals(file.FullName)) < 0)
                {
                    _buffer.Add(file);
                    reStartTimer();
                }
            }
        }
 public RunStartedMessage(ChangedFile[] files)
 {
     _files = files;
 }
		public void Should_check_for_nunit_test_framework_reference()
		{
			_referenceResolver.Stub(r => r.GetReferences("")).Return(new string[] { "nunit.framework" });
			var change = new ChangedFile("");
            _runner.CanHandleTestFor(change).ShouldBeTrue();
		}
 public FakeProjectFileCrawler(ChangedFile[] projects)
 {
     _projects = projects;
 }
 public void AddFile(ChangedFile[] files)
 {
     _files.AddRange(files);
 }
 public void AddFile(ChangedFile file)
 {
     _files.Add(file);
 }
		public bool CanHandleTestFor(ChangedFile assembly)
		{
			var references = _referenceResolver.GetReferences(assembly.FullName);
			return references.Contains("xunit");
		}
Exemple #8
0
		public bool CanHandleTestFor(ChangedFile assembly)
		{
			var references = _referenceResolver.GetReferences(assembly.FullName);
			return references.Contains("Microsoft.VisualStudio.QualityTools.UnitTestFramework");
		}
		public void Should_check_for_ms_test_framework_reference()
		{
			_referenceResolver.Stub(r => r.GetReferences("")).Return(new string[] { "Microsoft.VisualStudio.QualityTools.UnitTestFramework" });
			var change = new ChangedFile("");
            _runner.CanHandleTestFor(change).ShouldBeTrue();
		}