Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
 public void Use(ExpectedObject obj)
 {
     obj.DoAnotherSomething();
 }