Ayende @ Rahien

My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:


+972 52-548-6969

, @ Q c

Posts: 6,124 | Comments: 45,483

filter by tags archive

WatiN + MbUnit

time to read 4 min | 660 words

Verifying invalid input...







public void TryingToEnterWithInvlidPolicyNumberShowsError(string id)




    AssertContainsText("Can't find Policy with id #"+id,"Should give error message for invalid input");



Espen Albrektsen

This looks good - but I must be missing something.

I know the implementation behind your methods are straightforward - did you write those methods yuorself, or did you import some reference to Watin/MBUnit that I do not know about?

Ayende Rahien

No, those are my own implementations, merely to make it clearer what I am doing.

Open(url) =



Assert.IsFalse(ie.ContainsText("exception") )



Member Blogs

.NET ObjectDataSource and Generics (part 2) C# Callback and Event Mechanisms Unit Testing will be in

Comment preview

Comments have been closed on this topic.


  1. RavenDB 3.5 whirl wind tour: I’ll find who is taking my I/O bandwidth and they SHALL pay - 5 hours from now
  2. The design of RavenDB 4.0: Physically segregating collections - about one day from now
  3. RavenDB 3.5 Whirlwind tour: I need to be free to explore my data - 2 days from now
  4. RavenDB 3.5 whirl wind tour: I'll have the 3+1 goodies to go, please - 5 days from now
  5. The design of RavenDB 4.0: Voron has a one track mind - 6 days from now

And 12 more posts are pending...

There are posts all the way to May 30, 2016


  1. RavenDB 3.5 whirl wind tour (14):
    02 May 2016 - You want all the data, you can’t handle all the data
  2. The design of RavenDB 4.0 (13):
    03 May 2016 - Making Lucene reliable
  3. Tasks for the new comer (2):
    15 Apr 2016 - Quartz.NET with RavenDB
  4. Code through the looking glass (5):
    18 Mar 2016 - And a linear search to rule them
  5. Find the bug (8):
    29 Feb 2016 - When you can't rely on your own identity
View all series


Main feed Feed Stats
Comments feed   Comments Feed Stats