public void UpdateMethodTest_Truthy() { TestEntity dummy = new TestEntity(); _fakeCollection.Update(dummy).Returns(true); _fakeDbWrapper.Execute <TestEntity>(Arg.Any <string>(), Arg.Any <string>(), Arg.Any <Func <ICollectionWrapper <TestEntity>, bool> >()) .Returns(x => ((Func <ICollectionWrapper <TestEntity>, bool>)x[2]).Invoke(_fakeCollection)); bool result = _sut.Update(dummy); Assert.IsTrue(result); }