예제 #1
0
 public void GetSafeOutputPath_Valid()
 {
     Assert.AreEqual(combinedPath, Bio.GetSafeOutputPath(BASE_PATH, FILE_NAME));
 }
예제 #2
0
 public void GetSafeOutputPath_PathTraversal()
 {
     Assert.AreEqual(combinedPath, Bio.GetSafeOutputPath(BASE_PATH, PATH_TRAVERSAL_PATH));
 }
예제 #3
0
 public void GetSafeOutputPath_Empty_ShouldThrowException()
 {
     Bio.GetSafeOutputPath(BASE_PATH, "");
 }
예제 #4
0
        public void GetSafeOutputPath_AbsolutePath()
        {
            var expected = Path.Combine(BASE_PATH, "C", FILE_NAME);

            Assert.AreEqual(expected, Bio.GetSafeOutputPath(BASE_PATH, ABSOLUTE_FILE));
        }
예제 #5
0
 public void GetSafeOutputPath_Null_ShouldThrowException()
 {
     Bio.GetSafeOutputPath(null, FILE_NAME);
 }