Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

All Blogs

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Authors

Search

XML Feeds

Google Ads

Tags: rhino mocks

comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Raising events on a mock is easy with Rhino mocks. I wrote a whole article about it.

Way back then I wrote,

If we try to use the same syntax on the parameterless event like so eventraiser.GetEventRaiser(e => e.event1 += null).Raise(null); we get ...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Yesterday I had a bad day. My build on the buildserver wouldn't run. For some mysterious reason VS decided to crash when the solution was opened with the very famous "System Error &He06d7363&" which even Google can't seem to find. My build machine happens to be on XP (VM) and my developing machine is on Vista 64 bits.

So after searching for at least half a day, I got the brilliant idea of reinstalling the VS2008 SP1 and that fixed the problem ;-). I asked no further questions, it just did.

But now that it would build again, it started showing some weird behaviour in...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

This is the VB.Net version of "Rhino mocks and raising an event that has parameters and the AAA syntax" which was the C# version. I'm not saying it's perfect but it works. Well most things are pretty good except the AddingHandler functions. I'm pretty sure I could get that down to one function. But I have spent enough time on this already. All tests pass.

And here is the code. The explenation is pretty much the same as the previous post. Excpet for some VB.Net lambda weird...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Testing things with Rhino mocks and the AAA syntax is simple. But sometimes I need a reminder of the correct syntax. And sometimes the result is not what I would expect. But then that's what my users say about my programs too ;-).

I wrote a little testcase to see if I could reproduce the same result. And like I said before Rhino moccks' AAA syntax is much easier to use in C# but I will make a VB.Net version for this too. So don't worry.

The problem is understanding the difference between raising an event that has a delegate without parameters and raising a...

Read More...
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

There is no bug in Rhino mocks if that’s what you’re thinking. Rhino mocks 3.5 just uses things that VB.Net 9.0 can’t use and that can be frustrating. I wonder what possessed them to do it like that?

So let me tell the story.

I got a service and a repository, the service calls the repo.

Repo interface:

vbnet Sample Code (See Article for Rest)
Read More...

:: Next >>