예제 #1
0
        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);
        }
예제 #2
0
            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);
            }
예제 #3
0
 public When_passing_list_of_names()
 {
     this.whitelist = ReferenceRegistry.FromReferenceNames(this.referenceNames);
 }