Пример #1
0
        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();
        }
Пример #2
0
        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();
        }