Created
March 28, 2011 21:25
-
-
Save henrik-ch/891315 to your computer and use it in GitHub Desktop.
StringTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void StringFormat6() { | |
string x = "hello"; | |
string y = "jello".Replace("j", "h"); | |
Assert.AreNotSame(x, y); | |
string z = string.Intern(y); | |
Assert.AreSame(x, z); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment