コード例 #1
0
        public void RemoveStartSlashes_NotStartingWithSlash()
        {
            string result = Path.RemoveStartSlashes(@"withoutStartSlash");

            Assert.AreEqual(@"withoutStartSlash", result);
        }
コード例 #2
0
 public void RemoveStartSlashes_EmptyInput()
 {
     ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveStartSlashes(null));
     ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => Path.RemoveStartSlashes(string.Empty));
 }