public void ExplicitBinderInstanceReturnedIfTwoArgumentAttributeOnSourceClass() { ExplicitBindingSource source = new ExplicitBindingSource(); InstrumentationAttacherFactory factory = new InstrumentationAttacherFactory(); ConfigurationReflectionCache reflectionCache = new ConfigurationReflectionCache(); IInstrumentationAttacher createdAttacher = factory.CreateBinder(source, new object[0], reflectionCache); Assert.AreSame(typeof(ExplicitInstrumentationAttacher), createdAttacher.GetType()); }
public void ExplicitBinderInstanceReturnedIfTwoArgumentAttributeOnSourceClass() { ExplicitBindingSource source = new ExplicitBindingSource(); InstrumentationAttacherFactory factory = new InstrumentationAttacherFactory(); ConfigurationReflectionCache reflectionCache = new ConfigurationReflectionCache(); IInstrumentationAttacher createdAttacher = factory.CreateBinder(source, new object[0], reflectionCache); Assert.AreSame(typeof (ExplicitInstrumentationAttacher), createdAttacher.GetType()); }