Esempio n. 1
0
 public void StringToUpperInvariantUnsafe(string value, string expected)
 {
     // Copy the string so we don't run into any interning issues
     value = value == null ? null : String.Copy(value);
     Globalization.ToUpperInvariantUnsafe(value);
     value.Should().Be(expected);
 }
Esempio n. 2
0
        public void StringToUpperInvariantUnsafe(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.ToUpperInvariantUnsafe(value);
            value.Should().Be(expected);
        }