6 /// Summary description for DynamicMock.
8 public class DynamicMock : Mock
12 private object mockInstance;
14 public object MockInstance
18 if ( mockInstance == null )
20 MockInterfaceHandler handler = new MockInterfaceHandler( type, this );
21 mockInstance = handler.GetTransparentProxy();
30 public DynamicMock( Type type ) : this( "Mock" + type.Name, type ) { }
32 public DynamicMock( string name, Type type ) : base( name )
34 // if ( !type.IsInterface )
35 // throw new VerifyException( "DynamicMock constructor requires an interface type" );