public void CorrectDisivion() { var operation = new DivOperation(); var result = operation.Execute(9, 3); Assert.Equal(3, result); }
public BasicOperationProvider() { _operations = new Dictionary<string, IOperation>(); _operations[@"+"] = new AddOperation(); _operations[@"-"] = new SubOperation(); _operations[@"*"] = new MulOperation(); _operations[@"/"] = new DivOperation(); }
public void DivisionByZeroExceptionThrow() { var operation = new DivOperation(); Assert.Throws(typeof(DivideByZeroException), () => { operation.Execute(13, 0); }); }
public void CorrectPriority() { var operation = new DivOperation(); Assert.Equal(2, operation.Priority); }