public void call_to_method_multiply_on_ObjectAdapter_should_return_the_moltiplication() { ITargetInterface objectAdapter = new ObjectAdapter(_adaptee); Assert.That(objectAdapter.multiply(), Is.EqualTo(3.2 * 6.7)); }
public void call_to_max_method_on_ObjectAdapter_should_return_max() { ITargetInterface objectAdapter = new ObjectAdapter(_adaptee); Assert.That(objectAdapter.max(), Is.EqualTo(Math.Max(3.2, 6.7))); }
public void call_to_method_getFirstOperand_on_ObjectAdapter_should_return_the_first_operand() { ITargetInterface objectAdapter = new ObjectAdapter(_adaptee); Assert.That(objectAdapter.GetOperands()[0], Is.EqualTo(_adaptee.GetFirstOperand())); }
public void call_to_sum_method_on_ObjectAdapter_should_return_sum() { ITargetInterface objectAdapter = new ObjectAdapter(_adaptee); Assert.That(objectAdapter.sum(), Is.EqualTo(3.2 + 6.7)); }