Пример #1
0
        public void RemoveTrailingSlashes_NotRemoveTrailingSlashes_EndingWithSlash()
        {
            string result = Path.RemoveTrailingSlashes(@"withoutEndingSlash");

            Assert.AreEqual(@"withoutEndingSlash", result);
        }
Пример #2
0
 public void RemoveTrailingSlashes_EmptyInput()
 {
     ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveTrailingSlashes(null));
     ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveTrailingSlashes(string.Empty));
 }