예제 #1
0
        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());
        }
예제 #2
0
 public void Use(ExpectedObject obj)
 {
     obj.DoAnotherSomething();
 }