System.Tests.StringTests.Replace_String_StringInvalid C# (CSharp) 메소드

Replace_String_StringInvalid() 개인적인 메소드

private Replace_String_StringInvalid ( ) : void
리턴 void
        public static void Replace_String_StringInvalid()
        {
            Assert.Throws<ArgumentNullException>("oldValue", () => "Hello".Replace(null, "")); // Old value is null
            Assert.Throws<ArgumentException>("oldValue", () => "Hello".Replace("", "l")); // Old value is empty
        }
StringTests