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