Пример #1
0
        public void GetAssemblyListInvalidDirectory()
        {
            string directoryPath = null;

            var dllLister = new DllAssemblyLister();
            var result    = dllLister.GetAssemblyList(directoryPath);

            Assert.AreEqual(result.Count, 0);
        }
Пример #2
0
        public void GetAssemblyListValidDirectory()
        {
            string directoryPath = @"..\..\..\TestLibrary\bin\Debug\netstandard2.0\";

            var dllLister = new DllAssemblyLister();
            var result    = dllLister.GetAssemblyList(directoryPath);

            Assert.AreEqual(result.Count, 1);
        }
Пример #3
0
        public void DllAssemblyListDirectoryNull()
        {
            string directoryPath = null;

            var dllLister = new DllAssemblyLister();

            string[] result = dllLister.GetDllPaths(directoryPath);

            Assert.AreEqual(result, null);
        }
Пример #4
0
        public void DllAssemblyListDirectoryWithoutDlls()
        {
            string directoryPath = @"..\..\..\TestLibrary\bin\Debug\netstandard2.0\EmptyFolder";

            var dllLister = new DllAssemblyLister();

            string[] result = dllLister.GetDllPaths(directoryPath);

            Assert.AreEqual(result.Length, 0);
        }