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.
Your profile
Tag cloud
.net .net 3.5 .net 4.0 2003 access modifiers beginners book buildup c# excel f# linq microsoft reporting engine nhibernate nhprof nunit programming reflection reportviewer resharper rhino mocks structuremap threading unit testing vb.net vb.net. visual studio 2010 windows forms windows presentation foundation wpf
Authors
- chrissie1 (122)

- SQLDenis (17)

- Alex Ullrich (8)

- chaospandion (4)

- George Mastros (1)

- chopstik (1)

- tarwn (1)

- remou (1)

- More...
Main Categories
Search
Google Ads
Tags: rhino mocks
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 ...
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...
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...
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...
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:
:: Next >>


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