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