diff --git a/CKAN/Tests/CKAN/KSPPathUtils.cs b/CKAN/Tests/CKAN/KSPPathUtils.cs index 7db199eae3..fb49c0598c 100644 --- a/CKAN/Tests/CKAN/KSPPathUtils.cs +++ b/CKAN/Tests/CKAN/KSPPathUtils.cs @@ -15,6 +15,7 @@ public void NormalizePath() Assert.AreEqual("/a/b/c", CKAN.KSPPathUtils.NormalizePath("\\a/b\\c"), "Mixed slashes"); Assert.AreEqual("a/b/c", CKAN.KSPPathUtils.NormalizePath("a/b\\c"), "No starting slash"); Assert.AreEqual("/a/b/c", CKAN.KSPPathUtils.NormalizePath("\\a/b\\c\\"), "Trailing slash"); + Assert.AreEqual("SPACE", CKAN.KSPPathUtils.NormalizePath("SPACE"), "All upper-case, no slashes"); } [Test()] @@ -25,8 +26,8 @@ public void GetLastPathElement() Assert.AreEqual("c", CKAN.KSPPathUtils.GetLastPathElement("\\a/b\\c"), "With mixed slashes"); Assert.AreEqual("c", CKAN.KSPPathUtils.GetLastPathElement("a/b\\c"), "No starting slash"); Assert.AreEqual("c", CKAN.KSPPathUtils.GetLastPathElement("\\a/b\\c\\"), "Trailing slash"); - Assert.AreEqual("kOS", CKAN.KSPPathUtils.GetLastPathElement("GameData/kOS"), "Real world test"); + Assert.AreEqual("buckethead", CKAN.KSPPathUtils.GetLastPathElement("buckethead"), "No slashes at all"); } [Test()]