예제 #1
0
        /// <summary>
        /// Public constructor
        /// </summary>
        public MockTypeLib()
        {
            _containedTypeInfos     = new List <MockTypeInfo>();
            _typeLibAttributes.guid = Guid.NewGuid();
            _exportedFromComPlus    = null;

            _memoryHelper  = new MockUnmanagedMemoryHelper();
            _faultInjector = new MockFaultInjectionHelper <MockTypeLibrariesFailurePoints>();
        }
예제 #2
0
 /// <summary>
 /// Sets the fault injection object for this type
 /// </summary>
 /// <param name="faultInjector"></param>
 public void SetFaultInjector(MockFaultInjectionHelper <MockTypeLibrariesFailurePoints> faultInjector)
 {
     _faultInjector = faultInjector;
 }