System.Json.Tests.JsonValueTests.Parse_InvalidInput_ThrowsArgumentException C# (CSharp) Method

Parse_InvalidInput_ThrowsArgumentException() private method

private Parse_InvalidInput_ThrowsArgumentException ( string value ) : void
value string
return void
        public void Parse_InvalidInput_ThrowsArgumentException(string value)
        {
            Assert.Throws<ArgumentException>(null, () => JsonValue.Parse(value));

            using (StringReader textReader = new StringReader(value))
            {
                Assert.Throws<ArgumentException>(null, () => JsonValue.Load(textReader));
            }

            using (MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)))
            {
                Assert.Throws<ArgumentException>(null, () => JsonValue.Load(stream));
            }
        }
JsonValueTests