public void GetAssemblyListInvalidDirectory() { string directoryPath = null; var dllLister = new DllAssemblyLister(); var result = dllLister.GetAssemblyList(directoryPath); Assert.AreEqual(result.Count, 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); }
public void DllAssemblyListDirectoryNull() { string directoryPath = null; var dllLister = new DllAssemblyLister(); string[] result = dllLister.GetDllPaths(directoryPath); Assert.AreEqual(result, null); }
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); }