public void InOutMemoryCompositeIsTheSameAsInOutMemory() { var e1 = new InOutMemoryJack(4); var e2 = new CompositeJack(new InOutMemoryJack(4)); var e3 = new CompositeJack(new CompositeJack(new InOutMemoryJack(4))); AssertAreIdentical(e1, e2); AssertAreIdentical(e2, e3); AssertAreIdentical(e1, e3); }
public void InputOutputCompositeIsTheSameAsInputOutput() { var e1 = new InputOutputJack(); var e2 = new CompositeJack(new InputOutputJack()); var e3 = new CompositeJack(new CompositeJack(new InputOutputJack())); AssertAreIdentical(e1, e2); AssertAreIdentical(e2, e3); AssertAreIdentical(e1, e3); }