public void AllSubtractOperandTypesAreSupported() => TestCommon.TestThatAllPossibleOperandTypesAreSupported(_supportedOperatorPairs, (l, r) => TestCommon.Operate(null, OperatorType.Subtract, l, r), "subtracted");
public void SubtractOperandTypeTests(string actualStr, string expectedStr, string expectedTypeStr) => TestCommon.EvaluateActualAndExpected(actualStr, expectedStr, expectedTypeStr, new Configuration() { AllowMultidayTimes = true });
public void AMinusCanLeadTheExpression(string stringToParse, string expectedParseString) => TestCommon.CompareParseTree(stringToParse, expectedParseString);
public void TypedFloatValueIsParsedCorrectly(string stringToParse, string expectedTokenStr) => TestCommon.LiteralTokensAreParsedCorrectly <FloatToken>(stringToParse, expectedTokenStr);
public void ADoubleMinusIsANegativeNumber(string stringToParse, string expectedParseString) => TestCommon.CompareParseTree(stringToParse, expectedParseString);
public void ATripleMinusIsInvalid(string stringToParse) => TestCommon.CompareParseTree(stringToParse);
public void UnlimitedIntegerNegativeValuesAreParsedCorrectly(string stringToParse, string expectedTokenStr) => TestCommon.LiteralTokensAreParsedCorrectly <UnlimitedIntegerToken>(stringToParse, expectedTokenStr);
public void ASingleMinusIsASimpleExpression(string stringToParse, string expectedParseString) => TestCommon.CompareParseTree(stringToParse, expectedParseString);
public void AllDivideOperandTypesAreSupported() => TestCommon.TestThatAllPossibleOperandTypesAreSupported(_supportedOperatorPairs, (l, r) => TestCommon.Operate(null, OperatorType.Divide, l, r), "divided");
public void AllPowerOperandTypesAreSupported() => TestCommon.TestThatAllPossibleOperandTypesAreSupported(_supportedOperatorPairs, (l, r) => TestCommon.Operate(null, OperatorType.Power, l, r), "raised to the power of");
public void OctUnsignedLimitedIntegerValuesAreParsedCorrectly(string stringToParse, string expectedValue) => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken, BigInteger>(stringToParse, BigInteger.Parse(expectedValue));
public void BinLimitedIntegerValuesWithInvalidDigitsAreNotParsed(string stringToParse) => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken>(stringToParse, null);
public void BinLimitedIntegerValuesOutOfRangeAreNotParsed(string stringToParse) => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken>(stringToParse, null);
public void AllMultiplyOperandTypesAreSupported() => TestCommon.TestThatAllPossibleOperandTypesAreSupported(_supportedOperatorPairs, (l, r) => TestCommon.Operate(null, OperatorType.Multiply, l, r), "multiplied");
public void DatesAreParsedCorrectly(string stringToParse, string expectedTokenStr) => TestCommon.LiteralTokensAreParsedCorrectly <DateToken>(stringToParse, expectedTokenStr);