public void ShouldBeAbleToMockGenericMethod2()
        {
            Foo <int> retval = new Foo <int>();

            ILookupMapper <int> mapper = MockRepository.Mock <ILookupMapper <int> >();

            mapper.Expect(x => x.FindOneFoo())
            .Return(retval);

            Foo <int> oneFoo = mapper.FindOneFoo();

            mapper.VerifyExpectations(true);
        }
        public void ShouldBeAbleToMockGenericMethod()
        {
            List <Foo <int> > retval = new List <Foo <int> >();

            retval.Add(new Foo <int>());

            ILookupMapper <int> mapper = MockRepository.Mock <ILookupMapper <int> >();

            mapper.Expect(x => x.FindAllFoo())
            .Return(retval);

            IList <Foo <int> > listOfFoo = mapper.FindAllFoo();

            mapper.VerifyExpectations(true);
        }