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); }
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); }
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); }
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); }