Example #1
0
        public void AngleArgument_ParseShouldSucceed_WithEmptyRelativeWorldCoordinates()
        {
            // Arrange
            AngleArgument argument = new AngleArgument();
            IStringReader reader   = new StringReader("~");

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

            // Assert
            Assert.IsTrue(readResults.Successful);
        }
Example #2
0
        public void AngleArgument_ParseShouldFail_WithLocalCoordinates_BecauseMixedCoordinateTypes()
        {
            // Arrange
            AngleArgument argument = new AngleArgument();
            IStringReader reader   = new StringReader("^1.0");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
Example #3
0
        public void AngleArgument_ParseShouldSucceed()
        {
            // Arrange
            AngleArgument argument = new AngleArgument();
            IStringReader reader   = new StringReader("1.0");

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

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