Using Rhino Mocks 3.5 under .Net 2.0

41 views
Skip to first unread message

TrueWill

unread,
Sep 28, 2008, 8:54:22 PM9/28/08
to Rhino.Mocks
We are using the VS 2008 compiler, but are currently mandated to
target .Net 2.0 at work. I'd like to switch to Rhino Mocks 3.5 RC
for .Net 2.0 for the AAA syntax, but haven't figured out how to get
that to work without the extension methods. The "Using the AAA syntax
in C# 2.0" section of the Wiki is empty, and I haven't found any
examples elsewhere (I've looked). Is this doable, and can anyone
provide an example? TIA

Ayende Rahien

unread,
Sep 29, 2008, 2:30:20 AM9/29/08
to Rhino...@googlegroups.com
The AAA syntax relies heavily of labmdas.
It is possible to handle that using delegates, however.
You would also need to fully qualify extension methods, but that about it.

John Teague

unread,
Sep 29, 2008, 9:52:09 AM9/29/08
to Rhino...@googlegroups.com
Is it possible to keep your test project as 3.5 while your production assembly is in 2.0?

TrueWill

unread,
Sep 29, 2008, 10:30:25 AM9/29/08
to Rhino.Mocks
Lambdas are no problem, so long as they don't have to be converted to
expression trees. We're using the VS2008 compiler.

My problem is that I can't find the class containing the static
methods that would be used for extensions. I even fired up Reflector
with no success.

I'll talk to management about Mr. Teague's suggestion; if you do
intend to support .Net 2.0, though, I think some examples would be
very helpful.

Thanks,
Bill Sorensen
Reply all
Reply to author
Forward
0 new messages