Пример #1
0
        public void CheckAssemblyReferences()
        {
            var result = SystemAssemblyService.GetAssemblyReferences("Mono.Addins.dll");

            Assert.AreEqual(4, result.Length);
            Assert.That(result, Contains.Item("mscorlib"));
            Assert.That(result, Contains.Item("System"));
            Assert.That(result, Contains.Item("System.Core"));
            Assert.That(result, Contains.Item("System.Xml"));
        }
        public void CheckReferencesAreOk()
        {
            var names = new[] {
                "mscorlib",
                "System.Core",
                "System"
            };

            var references = SystemAssemblyService.GetAssemblyReferences(Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), "Mono.Cecil.dll"));

            Assert.That(references, Is.EquivalentTo(names));
        }
Пример #3
0
        public void CheckReferencesAreOk()
        {
            var names = new[] {
                "mscorlib",
                "System.Core",
                "System"
            };

            var references = SystemAssemblyService.GetAssemblyReferences("Mono.Cecil.dll");

            Assert.That(references, Is.EquivalentTo(names));
        }