From: "Roy Osherove" <r...@osherove.com>
Date: Sun, 17 Feb 2008 00:28:24 +0200
Local: Sat, Feb 16 2008 5:28 pm
Subject: Re: [altnetuk-discuss] Re: TypeMock vs. Rhino.Mocks fluent interface
yep. you're right. that's one area where Typemock is not totally typesafe. On Feb 16, 2008 8:47 PM, Stefan Lieser <ste...@lieser-online.de> wrote: > Roy, I think its time to discuss it on a complete example (see below). I > Besides the compiletime typesafety I prefer to write the expectations > Please show me how to get this compiletime typesafe. > Regards, > using Microsoft.VisualStudio.TestTools.UnitTesting; > namespace TestProject1 > [TestClass] > using (RecordExpectations r = RecorderManager.StartRecording()) { > Assert.AreSame("42", order.Id); > Roy Osherove schrieb: > > using (RecordExpectation r = new RecordExpectation ()) > > { > > Factory.GetCustomer().Orders(); > > r.Return(fakeOrders); > > } > > On Feb 16, 2008 3:59 PM, Stefan Lieser <ste...@lieser-online.de > > I started to play with TypeMock and did not find a fluent interface > > // TypeMock > > // Rhino.Mocks > > TypeMock's ExpectAndReturn doesn't use generics, so the return value > > Besides feeling a bit uncomfortable with TypeMock's syntax I think > > Did I miss something? > > Regards, > > Author of "The Art Of Unit Testing" ( http://ArtOfUnitTesting.com ) Thanks, Roy Osherove Author of "The Art Of Unit Testing" ( http://ArtOfUnitTesting.com ) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||