Skip to content

Instantly share code, notes, and snippets.

@bsommardahl
Created August 7, 2012 23:41
Show Gist options
  • Save bsommardahl/3290592 to your computer and use it in GitHub Desktop.
Save bsommardahl/3290592 to your computer and use it in GitHub Desktop.
The crack is not showing quite yet...
namespace RentAPlumber.Specs
{
public class when_a_plumber_fixes_a_sink
{
static Plumber _plumber;
static Sink _sink;
Establish context = () =>
{
_plumber = new Plumber();
_sink = new Sink
{
Leaks = new List<Leak>
{
new Leak(),
new Leak()
}
};
};
Because of = () => _plumber.FixSink(_sink);
It should_ensure_that_the_pipes_do_not_leak = () => _sink.Leaks.ShouldBeEmpty();
It should_reveal_the_plumbers_crack = () => _plumber.CrackShowing.ShouldBeTrue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment