public void ShouldReturn_Correct_WorkingDirectoryPath() { var service = new DefaultWorkingDirectory(); var path = service.GetWorkingDirectoryPath(); Assert.IsNotNull(path); Assert.IsTrue(path.Contains(AppDomain.CurrentDomain.BaseDirectory)); }
public void ShouldCopy_ModulesToRuntimeDirectory_Successfully() { PrepareTestDll(); var service = new DefaultWorkingDirectory(); service.RecopyModulesToRuntimeFolder(new FileInfo(ModuleFileName)); Assert.IsTrue(File.Exists(RuntimeFileName)); RemoveTestDll(); }
public void ShouldReturn_AvailableModules() { PrepareTestDll(); var service = new DefaultWorkingDirectory(); var modules = service.GetAvailableModules(); Assert.IsNotNull(modules); Assert.AreEqual(modules.Count(), 1); Assert.AreEqual(modules.First().Name, "test.dll"); RemoveTestDll(); }