public static void Replace_Char_Char_DoesntAllocateIfNothingIsReplaced(string s, char oldChar, char newChar) { Assert.Same(s, s.Replace(oldChar, newChar)); }