public void GetSafeOutputPath_Valid() { Assert.AreEqual(combinedPath, Bio.GetSafeOutputPath(BASE_PATH, FILE_NAME)); }
public void GetSafeOutputPath_PathTraversal() { Assert.AreEqual(combinedPath, Bio.GetSafeOutputPath(BASE_PATH, PATH_TRAVERSAL_PATH)); }
public void GetSafeOutputPath_Empty_ShouldThrowException() { Bio.GetSafeOutputPath(BASE_PATH, ""); }
public void GetSafeOutputPath_AbsolutePath() { var expected = Path.Combine(BASE_PATH, "C", FILE_NAME); Assert.AreEqual(expected, Bio.GetSafeOutputPath(BASE_PATH, ABSOLUTE_FILE)); }
public void GetSafeOutputPath_Null_ShouldThrowException() { Bio.GetSafeOutputPath(null, FILE_NAME); }