Beispiel #1
0
 /// <summary>
 /// Add a new type info to the type library
 /// </summary>
 /// <param name="typeInfo"></param>
 public void AddTypeInfo(MockTypeInfo typeInfo)
 {
     _containedTypeInfos.Add(typeInfo);
     typeInfo.ContainingTypeLib        = this;
     typeInfo.IndexInContainingTypeLib = _containedTypeInfos.Count - 1;
     typeInfo.SetFaultInjector(_faultInjector);
 }
Beispiel #2
0
 /// <summary>
 /// Add a new type info to the type library
 /// </summary>
 /// <param name="typeInfo"></param>
 public void AddTypeInfo(MockTypeInfo typeInfo)
 {
     _containedTypeInfos.Add(typeInfo);
     typeInfo.ContainingTypeLib = this;
     typeInfo.IndexInContainingTypeLib = _containedTypeInfos.Count - 1;
     typeInfo.SetFaultInjector(_faultInjector);
 }
Beispiel #3
0
 /// <summary>
 /// Adds a new function signature to the list of this type's implemented functions
 /// </summary>
 /// <param name="implementedType"></param>
 public void DefinesFunction(MockTypeInfo[] parameters, MockTypeInfo returnType)
 {
     _typeAttributes.cFuncs++;
     _definedFunctions.Add(new FuncInfo(parameters, returnType));
 }
Beispiel #4
0
 /// <summary>
 /// Adds implementedType to the list of this type's implemented interfaces
 /// </summary>
 /// <param name="implementedType"></param>
 public void ImplementsInterface(MockTypeInfo implementedType)
 {
     _typeAttributes.cImplTypes++;
     _implementedTypes.Add(implementedType);
 }
Beispiel #5
0
 /// <summary>
 /// Adds a new function signature to the list of this type's implemented functions
 /// </summary>
 /// <param name="implementedType"></param>
 public void DefinesFunction(MockTypeInfo[] parameters, MockTypeInfo returnType)
 {
     _typeAttributes.cFuncs++;
     _definedFunctions.Add(new FuncInfo(parameters, returnType));
 }
Beispiel #6
0
 /// <summary>
 /// Adds implementedType to the list of this type's implemented interfaces
 /// </summary>
 /// <param name="implementedType"></param>
 public void ImplementsInterface(MockTypeInfo implementedType)
 {
     _typeAttributes.cImplTypes++;
     _implementedTypes.Add(implementedType);
 }