Beispiel #1
0
        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);
        }
Beispiel #2
0
        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));
        }