System.Tests.StringTests.Replace_String_String_DoesntAllocateIfNothingIsReplaced C# (CSharp) Method

Replace_String_String_DoesntAllocateIfNothingIsReplaced() private method

private Replace_String_String_DoesntAllocateIfNothingIsReplaced ( string s, string oldValue, string newValue ) : void
s string
oldValue string
newValue string
return void
        public static void Replace_String_String_DoesntAllocateIfNothingIsReplaced(string s, string oldValue, string newValue)
        {
            Assert.Same(s, s.Replace(oldValue, newValue));
        }
StringTests