public void WhenInvoke_Adapt_ShouldInvokeAdaptee() { //arrange var adaptee = new Adaptee(); var sut = new Adapter(adaptee); //act sut.Adapt(); //assert Assert.Equal(1, adaptee.GetInvokedCount()); }
public Adapter(Adaptee adaptee) { this._adaptee = adaptee; }