public void CompoundTagArgument_ParseShouldFail_BecauseInvalidType() { // Arrange CompoundTagArgument argument = new CompoundTagArgument(); IStringReader reader = new StringReader("[1, 2, 3]"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsFalse(readResults.Successful); }
public void CompoundTagArgument_ParseShouldSucceed() { // Arrange CompoundTagArgument argument = new CompoundTagArgument(); IStringReader reader = new StringReader("{foo: 'bar', baz: 3}"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsTrue(readResults.Successful); }