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

Replace_Char_Char_DoesntAllocateIfNothingIsReplaced() 개인적인 메소드

private Replace_Char_Char_DoesntAllocateIfNothingIsReplaced ( string s, char oldChar, char newChar ) : void
s string
oldChar char
newChar char
리턴 void
        public static void Replace_Char_Char_DoesntAllocateIfNothingIsReplaced(string s, char oldChar, char newChar)
        {
            Assert.Same(s, s.Replace(oldChar, newChar));
        }
StringTests