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