26 references to MockTypeLibrariesFailurePoints
Microsoft.Build.Tasks.UnitTests (26)
ComReferenceWalker_Tests.cs (4)
236
foreach (
MockTypeLibrariesFailurePoints
failurePoint in Enum.GetValues(typeof(
MockTypeLibrariesFailurePoints
)))
265
private static void CreateFaultInjectionTypeLibs(
MockTypeLibrariesFailurePoints
failurePoint, out MockTypeLib mainTypeLib,
293
private void RunDependencyWalkerFaultInjection(
MockTypeLibrariesFailurePoints
failurePoint, MockTypeLib mainTypeLib, MockTypeLib dependencyTypeLibGood1, MockTypeLib dependencyTypeLibBad1, MockTypeLib dependencyTypeLibGood2, MockTypeLib dependencyTypeLibBad2)
MockTypeInfo.cs (14)
158
private MockFaultInjectionHelper<
MockTypeLibrariesFailurePoints
> _faultInjector;
233
public void SetFaultInjector(MockFaultInjectionHelper<
MockTypeLibrariesFailurePoints
> faultInjector)
252
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetRefTypeOfImplType);
259
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetRefTypeInfo);
291
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetContainingTypeLib);
301
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetTypeAttr);
313
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_ReleaseTypeAttr);
320
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetRefTypeOfImplType);
327
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetRefTypeInfo);
356
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetVarDesc);
374
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_ReleaseVarDesc);
381
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetFuncDesc);
416
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_ReleaseFuncDesc);
423
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeInfo_GetDocumentation);
MockTypeLib.cs (8)
82
private MockFaultInjectionHelper<
MockTypeLibrariesFailurePoints
> _faultInjector;
94
_faultInjector = new MockFaultInjectionHelper<
MockTypeLibrariesFailurePoints
>();
112
public void InjectFailure(
MockTypeLibrariesFailurePoints
failurePoint, Exception exceptionToThrow)
148
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeLib_GetLibAttr);
160
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeLib_ReleaseTLibAttr);
165
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeLib_GetTypeInfo);
173
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeLib_GetTypeInfoCount);
218
_faultInjector.FailurePointThrow(
MockTypeLibrariesFailurePoints
.ITypeLib2_GetCustData);