public void RemoveTrailingSlashes_NotRemoveTrailingSlashes_EndingWithSlash() { string result = Path.RemoveTrailingSlashes(@"withoutEndingSlash"); Assert.AreEqual(@"withoutEndingSlash", result); }
public void RemoveTrailingSlashes_EmptyInput() { ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveTrailingSlashes(null)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveTrailingSlashes(string.Empty)); }