Skip to content

Instantly share code, notes, and snippets.

@jhollingworth
Created July 28, 2010 16:42
Show Gist options
  • Save jhollingworth/495207 to your computer and use it in GitHub Desktop.
Save jhollingworth/495207 to your computer and use it in GitHub Desktop.
public class When_there_are_100_bottles_of_beer_on_the_wall
{
static Wall Wall;
Establish there_are = () => Wall = new Wall { NumberBottlesOfBeer = 100 };
Because we_take_one_down_and_pass_it_around = () => Wall.TakeOneDownAndPassItAround();
It should_only_have_99_bottles_of_beer_on_the_wall = () => Wall.NumberBottlesOfBeer.ShouldEqual(99);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment