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