public void EntitySummonArgument_ParseShouldFail() { // Arrange EntitySummonArgument argument = new EntitySummonArgument(); IStringReader reader = new StringReader("foo::bar"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsFalse(readResults.Successful); }
public void Entities_ShouldNotContainEntity() { // Arrange EntitySummonArgument argument = new EntitySummonArgument(); Entities.Set("[\"foo\", \"bar\"]"); IStringReader reader = new StringReader("baz"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsFalse(readResults.Successful); }
public void EntitySummonArgument_ParseShouldSucceed_WithDefaultNamespace() { // Arrange EntitySummonArgument argument = new EntitySummonArgument(); Entities.Set("[\"foo\", \"bar\"]"); IStringReader reader = new StringReader("minecraft:foo"); // Act ReadResults readResults = argument.Parse(reader, out _); // Assert Assert.IsTrue(readResults.Successful); }