public void RemoveStartSlashes_NotStartingWithSlash() { string result = Path.RemoveStartSlashes(@"withoutStartSlash"); Assert.AreEqual(@"withoutStartSlash", result); }
public void RemoveStartSlashes_EmptyInput() { ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveStartSlashes(null)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveStartSlashes(string.Empty)); }