public static void Attach(IMethodMock methodMock)
		{
			var behavior = new PreserveRefOutValuesBehavior(methodMock);
			var madeReplacements = ReplaceRefOutArgsWithAnyMatcher(methodMock.CallPattern);
			if (madeReplacements)
				methodMock.Behaviors.Add(behavior);
		}
Exemple #2
0
		public static void Attach(IMethodMock methodMock)
		{
			var behavior = new PreserveRefOutValuesBehavior(methodMock);
			var madeReplacements = ReplaceRefOutArgsWithAnyMatcher(methodMock.CallPattern);
			if (madeReplacements)
				methodMock.Behaviors.Add(behavior);
		}