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))); }
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))); }