예제 #1
0
 public void StringToLowerInvariantUnsafe(string value, string expected)
 {
     // Copy the string so we don't run into any interning issues
     value = value == null ? null : String.Copy(value);
     Globalization.ToLowerInvariantUnsafe(value);
     value.Should().Be(expected);
 }
예제 #2
0
        public void StringToLowerInvariantUnsafe(string value, string expected)
        {
            // Copy the string so we don't run into any interning issues
#pragma warning disable CS0618 // Type or member is obsolete
            value = value == null ? null : string.Copy(value);
#pragma warning restore CS0618 // Type or member is obsolete
            Globalization.ToLowerInvariantUnsafe(value);
            value.Should().Be(expected);
        }