Assertfail

All Posts assertfail

View the Blog on GitHub wallymathieu

Assert.Fail

04 Sep 2009

Why Assert.Fail? Some might find it negative. Perhaps it is. The way I use it is more like a clean slate:

public void FooTest(){
Assert.Fail();
}

It’s the starting point of many tests. Same as methods:

public void Foo(){
throw new NotImplementedException();
}

It’s a clean canvas for your implementation.

Tags

Comments or errors? Fork post and do a pull request on github