Exemple #1
0
        public void ColumnPosArgument_ParseShouldFail_BecauseIncomplete()
        {
            // Arrange
            ColumnPosArgument argument = new ColumnPosArgument();
            IStringReader     reader   = new StringReader("1.0");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
Exemple #2
0
        public void ColumnPosArgument_ParseShouldSucceed_WithEmptyRelativeWorldCoordinates()
        {
            // Arrange
            ColumnPosArgument argument = new ColumnPosArgument();
            IStringReader     reader   = new StringReader("~ ~");

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

            // Assert
            Assert.IsTrue(readResults.Successful);
        }
Exemple #3
0
        public void ColumnPosArgument_ParseShouldFail_WithLocalCoordinates_BecauseMixedCoordinateTypes()
        {
            // Arrange
            ColumnPosArgument argument = new ColumnPosArgument();
            IStringReader     reader   = new StringReader("^1.0 ^2.0");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
Exemple #4
0
        public void ColumnPosArgument_ParseShouldSucceed()
        {
            // Arrange
            ColumnPosArgument argument = new ColumnPosArgument();
            IStringReader     reader   = new StringReader("1 2");

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

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