Created
August 7, 2012 23:41
-
-
Save bsommardahl/3290592 to your computer and use it in GitHub Desktop.
The crack is not showing quite yet...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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