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