예제 #1
0
        public void ReferenceEquals()
        {
            Utf8String s1 = new Utf8String("asd");
            Assert.True(s1.ReferenceEquals(s1));

            Utf8String s2 = new Utf8String("asd");
            Assert.True(s2.ReferenceEquals(s2));

            Assert.False(s1.ReferenceEquals(s2));
            Assert.False(s2.ReferenceEquals(s1));
        }