Exemple #1
0
        public void TestCanAdapt()
        {
            AdapterCreator <SimpleAdapter> creator = new AdapterCreator <SimpleAdapter>();

            // test CanAdapt
            Assert.True(creator.CanAdapt(this, typeof(ISimpleInterface)));
            Assert.False(creator.CanAdapt(this, typeof(string)));
        }
Exemple #2
0
        public void TestCanAdapt()
        {
            AdapterCreator<SimpleAdapter> creator = new AdapterCreator<SimpleAdapter>();

            // test CanAdapt
            Assert.True(creator.CanAdapt(this, typeof(ISimpleInterface)));
            Assert.False(creator.CanAdapt(this, typeof(string)));
        }