Esempio n. 1
0
        public void NbtTagArgument_ParseShouldSucceed_WithDifferentType()
        {
            // Arrange
            NbtTagArgument argument = new NbtTagArgument();
            IStringReader  reader   = new StringReader("[1, 2, 3]");

            // Act
            ReadResults readResults = argument.Parse(reader, out _);

            // Assert
            Assert.IsTrue(readResults.Successful);
        }
Esempio n. 2
0
        public void NbtTagArgument_ParseShouldSucceed()
        {
            // Arrange
            NbtTagArgument argument = new NbtTagArgument();
            IStringReader  reader   = new StringReader("{foo: 'bar', baz: 3}");

            // Act
            ReadResults readResults = argument.Parse(reader, out _);

            // Assert
            Assert.IsTrue(readResults.Successful);
        }