Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }