public void ItemArgument_ParseShouldSucceed_WithNbt() { // Arrange Items.Set("[\"foo\", \"bar\"]"); ItemArgument argument = new ItemArgument(); IStringReader reader = new StringReader("foo{bar: 'baz'}"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsTrue(readResults.Successful); }
public void ItemArgument_ParseShouldFail_BecauseItemDoesNotExist() { // Arrange Items.Set("[\"foo\", \"bar\"]"); ItemArgument argument = new ItemArgument(); IStringReader reader = new StringReader("baz"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsFalse(readResults.Successful); }