예제 #1
0
        private IInputFile ScanFile(string fileName)
        {
            IInputFile scannedFile;

            if (_systemDetector != null)
            {
                scannedFile = TestFramework.DetectData(new[] { _systemDetector }, new[] { _videoDetector }, _project, fileName);
            }
            else
            {
                scannedFile = TestFramework.DetectData(new IDetector[] { }, new[] { _videoDetector }, _project, fileName);
            }
            CollectionAssert.IsNotEmpty(_project.GetInputFiles().Select(file => file.Name), "Scanned files");
            return(scannedFile);
        }