public void ProjectIgnoringAssemblyFilesShouldNotReturnAssemblyFilesInSourcesToValidate() { _project = new CalidusProject(@"C:\src\test.project", _provider); Expect.Call(_provider.GetFiles()).Return(_files).Repeat.Once(); Mocker.ReplayAll(); _project.IgnoreAssemblyFiles = true; CollectionAssert.DoesNotContain(_project.GetSourceFilesToValidate(), @"C:\src\main\AssemblyInfo.cs"); Mocker.VerifyAll(); }
public void ProjectGetSourcesToValidateShouldNotReturnIgnoredCsFiles() { _project = new CalidusProject(@"C:\src\test.project", _provider); Expect.Call(_provider.GetFiles()).Return(_files).Repeat.Once(); Mocker.ReplayAll(); _project.IgnoredFileList.Add(@"\src\main\Bravo.cs"); CollectionAssert.DoesNotContain(_project.GetSourceFilesToValidate(), @"C:\src\main\Bravo.cs"); Mocker.VerifyAll(); }