public void Assign2Values(string operationText, int expectedValueA, int expectedValueB) { OperationSplitter.Split(operationText, out decimal ValueA, out decimal ValueB); ValueA.ShouldBe(expectedValueA); ValueB.ShouldBe(expectedValueB); }
public Operator(string calculation) { OperationSplitter.Split(calculation, out _valueA, out _valueB); }
public void ThrowExceptionGivenInvalidString(string operationText) { Should.Throw <ArgumentException>(() => OperationSplitter.Split(operationText, out decimal v1, out decimal v2)); }