public void CheckTheAdapterFunctionality() { var i = new ImmutableObject(); var exGuy = new ExpectedObject(i); var exContext = new ExpectedContext(); exContext.Use(exGuy); Assert.Equal(i.DoSomething(), exGuy.DoAnotherSomething()); }
public void Use(ExpectedObject obj) { obj.DoAnotherSomething(); }