コード例 #1
0
        public void RotationArgument_ParseShouldFail_BecauseIncomplete()
        {
            // Arrange
            RotationArgument argument = new RotationArgument();
            IStringReader    reader   = new StringReader("1.0");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
コード例 #2
0
        public void RotationArgument_ParseShouldSucceed_WithEmptyRelativeWorldCoordinates()
        {
            // Arrange
            RotationArgument argument = new RotationArgument();
            IStringReader    reader   = new StringReader("~ ~");

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

            // Assert
            Assert.IsTrue(readResults.Successful);
        }
コード例 #3
0
        public void RotationArgument_ParseShouldFail_WithLocalCoordinates_BecauseMixedCoordinateTypes()
        {
            // Arrange
            RotationArgument argument = new RotationArgument();
            IStringReader    reader   = new StringReader("^1.0 ^2.0");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
コード例 #4
0
        public void RotationArgument_ParseShouldSucceed()
        {
            // Arrange
            RotationArgument argument = new RotationArgument();
            IStringReader    reader   = new StringReader("1.0 2.0");

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

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