System.Json.Tests.JsonValueTests.JsonPrimitive_Roundtrip_ValidUnicode C# (CSharp) Метод

JsonPrimitive_Roundtrip_ValidUnicode() приватный Метод

private JsonPrimitive_Roundtrip_ValidUnicode ( string str ) : void
str string
Результат void
        public void JsonPrimitive_Roundtrip_ValidUnicode(string str)
        {
            string json = new JsonPrimitive(str).ToString();

            new UTF8Encoding(false, true).GetBytes(json);

            Assert.Equal(str, JsonValue.Parse(json));
        }
JsonValueTests