public void FindAssemblySet_SingleAssembly()
        {
            var directory = Temp.CreateDirectory();

            var alphaDll = directory.CopyFile(_testFixture.Alpha.Path);
            var results  = AssemblyUtilities.FindAssemblySet(alphaDll.Path);

            AssertEx.SetEqual(new[] { alphaDll.Path }, results);
        }
Esempio n. 2
0
        public void FindAssemblySet_SingleAssembly()
        {
            var directory = Temp.CreateDirectory();

            var alphaDll = directory.CreateFile("Alpha.dll").WriteAllBytes(TestResources.AssemblyLoadTests.Alpha);

            var results = AssemblyUtilities.FindAssemblySet(alphaDll.Path);

            Assert.Equal(expected: 1, actual: results.Length);
            Assert.Equal(expected: alphaDll.Path, actual: results[0]);
        }
        public void FindAssemblySet_TransitiveDependencies()
        {
            var results = AssemblyUtilities.FindAssemblySet(_testFixture.Alpha.Path);

            AssertEx.SetEqual(new[]
            {
                _testFixture.Alpha.Path,
                _testFixture.Gamma.Path,
                _testFixture.Delta1.Path
            }, results, StringComparer.OrdinalIgnoreCase);
        }
        public void FindAssemblySet_SimpleDependency()
        {
            var directory = Temp.CreateDirectory();

            var alphaDll = directory.CopyFile(_testFixture.Alpha.Path);
            var gammaDll = directory.CopyFile(_testFixture.Gamma.Path);

            var results = AssemblyUtilities.FindAssemblySet(alphaDll.Path);

            AssertEx.SetEqual(new[] { alphaDll.Path, gammaDll.Path }, results, StringComparer.OrdinalIgnoreCase);
        }
Esempio n. 5
0
        public void FindAssemblySet_SimpleDependency()
        {
            var directory = Temp.CreateDirectory();

            var alphaDll = directory.CreateFile("Alpha.dll").WriteAllBytes(TestResources.AssemblyLoadTests.Alpha);
            var gammaDll = directory.CreateFile("Gamma.dll").WriteAllBytes(TestResources.AssemblyLoadTests.Gamma);

            var results = AssemblyUtilities.FindAssemblySet(alphaDll.Path);

            Assert.Equal(expected: 2, actual: results.Length);
            Assert.Contains(alphaDll.Path, results, StringComparer.OrdinalIgnoreCase);
            Assert.Contains(gammaDll.Path, results, StringComparer.OrdinalIgnoreCase);
        }