diff --git a/tests/TestSupport/MockBuilderContext.cs b/tests/TestSupport/MockBuilderContext.cs
index cf20dc4..6a75020 100644
--- a/tests/TestSupport/MockBuilderContext.cs
+++ b/tests/TestSupport/MockBuilderContext.cs
@@ -163,14 +163,5 @@ namespace Microsoft.Practices.Unity.TestSupport
return Strategies.ExecuteBuildUp(this);
}
-
- public object ExecuteTearDown(object existing)
- {
- this.BuildKey = null;
- this.Existing = existing;
-
- Strategies.Reverse().ExecuteTearDown(this);
- return existing;
- }
}
}
diff --git a/tests/TestSupport/MockStrategyChain.cs b/tests/TestSupport/MockStrategyChain.cs
index e875100..da23ab1 100644
--- a/tests/TestSupport/MockStrategyChain.cs
+++ b/tests/TestSupport/MockStrategyChain.cs
@@ -102,40 +102,6 @@ namespace Microsoft.Practices.Unity.TestSupport
}
}
- ///
- /// Execute this strategy chain against the given context,
- /// calling the TearDown methods on the strategies.
- ///
- /// Context for the teardown process.
- public void ExecuteTearDown(IBuilderContext builderContext)
- {
- var context = builderContext ?? throw new ArgumentNullException(nameof(builderContext));
- int i = 0;
-
- try
- {
- for (; i < _strategies.Count; ++i)
- {
- if (context.BuildComplete)
- {
- --i; // Skip current strategy's post
- break;
- }
- _strategies[i].PreTearDown(context);
- }
-
- for (--i; i >= 0; --i)
- {
- _strategies[i].PostTearDown(context);
- }
- }
- catch (Exception)
- {
- context.RecoveryStack.ExecuteRecovery();
- throw;
- }
- }
-
#region IEnumerable Members
///