Skip to content

Commit 7413901

Browse files
committed
moved bddfy method to the scenario class in ATM
1 parent c6bdd91 commit 7413901

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

TestStack.BDDfy.Samples/Atm/AccountHasInsufficientFund.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,11 @@ void And_the_Card_should_be_returned()
5050
{
5151
Assert.IsFalse(_atm.CardIsRetained);
5252
}
53+
54+
[Test]
55+
public void Verify()
56+
{
57+
new AccountHasInsufficientFund().BDDfy<AccountHolderWithdrawsCash>();
58+
}
5359
}
5460
}

TestStack.BDDfy.Samples/Atm/AccountHolderWithdrawsCash.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ void And_the_ATM_should_say_the_Card_has_been_retained()
6464
Assert.AreEqual(DisplayMessage.CardIsRetained, _atm.Message);
6565
}
6666

67-
[Test]
68-
public void AccountHasInsufficientFund()
69-
{
70-
new AccountHasInsufficientFund().BDDfy<AccountHolderWithdrawsCash>();
71-
}
72-
7367
[Test]
7468
public void AccountHasSufficientFund()
7569
{

0 commit comments

Comments
 (0)