public void DoubleRangeArgument_ParseShouldFail_BecauseEmpty()
        {
            // Arrange
            DoubleRangeArgument argument = new DoubleRangeArgument();
            IStringReader       reader   = new StringReader("..");

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

            // Assert
            Assert.IsFalse(readResults.Successful);
        }
        public void DoubleRangeResult_RangeResultMaximumShouldBeCorrect()
        {
            // Arrange
            DoubleRangeArgument argument = new DoubleRangeArgument();
            IStringReader       reader   = new StringReader("..10.0");

            // Act
            argument.Parse(reader, out Range <double> result);

            // Assert
            Assert.AreEqual(result.Maximum, 10.0d);
        }
        public void DoubleRangeArgument_ParseShouldSucceed_WithLoopable()
        {
            // Arrange
            DoubleRangeArgument argument = new DoubleRangeArgument(true);
            IStringReader       reader   = new StringReader("10.0..-10.0");

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

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