public void TestCreateAdapterPath() { var adapter = new LocalAdapter("C:/some/dir"); string pathWithLeadingSlash = adapter.CreateAdapterPath("/folder"); string pathWithoutLeadingSlash = adapter.CreateAdapterPath("folder"); Assert.AreEqual(pathWithLeadingSlash, "C:\\some\\dir\\folder"); Assert.AreEqual(pathWithLeadingSlash, pathWithoutLeadingSlash); }
public void TestCreateAdapterPath() { var adapter = new LocalAdapter("C:/some/dir"); string pathWithLeadingSlash = adapter.CreateAdapterPath("/folder"); string pathWithoutLeadingSlash = adapter.CreateAdapterPath("folder"); Assert.AreEqual(pathWithLeadingSlash, "C:\\some\\dir\\folder"); Assert.AreEqual(pathWithLeadingSlash, pathWithoutLeadingSlash); // A null corpus path should return a null adapter path Assert.IsNull(adapter.CreateAdapterPath(null)); }