Пример #1
0
        public void Assign2Values(string operationText, int expectedValueA, int expectedValueB)
        {
            OperationSplitter.Split(operationText, out decimal ValueA, out decimal ValueB);

            ValueA.ShouldBe(expectedValueA);
            ValueB.ShouldBe(expectedValueB);
        }
Пример #2
0
 public Operator(string calculation)
 {
     OperationSplitter.Split(calculation, out _valueA, out _valueB);
 }
Пример #3
0
 public void ThrowExceptionGivenInvalidString(string operationText)
 {
     Should.Throw <ArgumentException>(() => OperationSplitter.Split(operationText, out decimal v1, out decimal v2));
 }