Skip to content

Instantly share code, notes, and snippets.

@smallgeek
Created August 26, 2012 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smallgeek/3474998 to your computer and use it in GitHub Desktop.
Save smallgeek/3474998 to your computer and use it in GitHub Desktop.
NaturalSpec_Tutorial_3_5
Scenario: When selling a car for 1000 it should fail with Need More Money
- Should fail…
– As Bert
– When selling a car for 1000
Scenario: When selling a car for 19000 it should equal the LameCar
- As Bert
– When selling a car for 19000
=> It should equal Fiat (45 HP)
=> It should not equal BMW (200 HP)
==> OK
Scenario: When selling a car for 30000 it should equal my DreamCar
- As Bert
– When selling a car for 30000
=> It should equal BMW (200 HP)
==> OK
Scenario: When selling a car for 30000 it should equal the DreamCar
- As Bert
– When selling a car for 30000
=> It should equal BMW (200 HP)
=> It should not equal Fiat (45 HP)
>==> OK
4 passed, 0 failed, 0 skipped, took 1,81 seconds (NUnit 2.5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment