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
 });
예제 #3
0
 public void AMinusCanLeadTheExpression(string stringToParse, string expectedParseString)
 => TestCommon.CompareParseTree(stringToParse, expectedParseString);
예제 #4
0
 public void TypedFloatValueIsParsedCorrectly(string stringToParse, string expectedTokenStr)
 => TestCommon.LiteralTokensAreParsedCorrectly <FloatToken>(stringToParse, expectedTokenStr);
예제 #5
0
 public void ADoubleMinusIsANegativeNumber(string stringToParse, string expectedParseString)
 => TestCommon.CompareParseTree(stringToParse, expectedParseString);
예제 #6
0
 public void ATripleMinusIsInvalid(string stringToParse)
 => TestCommon.CompareParseTree(stringToParse);
 public void UnlimitedIntegerNegativeValuesAreParsedCorrectly(string stringToParse, string expectedTokenStr)
 => TestCommon.LiteralTokensAreParsedCorrectly <UnlimitedIntegerToken>(stringToParse, expectedTokenStr);
예제 #8
0
 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");
예제 #10
0
 public void AllPowerOperandTypesAreSupported()
 => TestCommon.TestThatAllPossibleOperandTypesAreSupported(_supportedOperatorPairs, (l, r) => TestCommon.Operate(null, OperatorType.Power, l, r), "raised to the power of");
예제 #11
0
 public void OctUnsignedLimitedIntegerValuesAreParsedCorrectly(string stringToParse, string expectedValue)
 => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken, BigInteger>(stringToParse, BigInteger.Parse(expectedValue));
예제 #12
0
 public void BinLimitedIntegerValuesWithInvalidDigitsAreNotParsed(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken>(stringToParse, null);
예제 #13
0
 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");
예제 #15
0
 public void DatesAreParsedCorrectly(string stringToParse, string expectedTokenStr)
 => TestCommon.LiteralTokensAreParsedCorrectly <DateToken>(stringToParse, expectedTokenStr);