public ProjectIntegrity(ReferenceRegistry wellKnownLibraries, string libDirectory) { var check = new ProjectIntegrityCheck(new FileSystem(), wellKnownLibraries, libDirectory); var parser = new MsBuildProjectParser(new XmlDocumentLoader()); this.referenceIntegrity = new ReferenceIntegrity(check, parser.ParseBinaryReferences); }
public When_file_contains_empty_lines_between_names() { this.fileSystem = new MockFileSystem(new Dictionary<string, MockFileData> { {"refs.txt", new MockFileData(string.Join(Environment.NewLine, this.referenceNames))} }); this.registry = ReferenceRegistry.FromLinesInFile("refs.txt", this.fileSystem); }
public When_passing_list_of_names() { this.whitelist = ReferenceRegistry.FromReferenceNames(this.referenceNames); }