Created
April 23, 2019 07:50
-
-
Save jasongorman/5fd312bcbe0411d68401e062a2bbeaa0 to your computer and use it in GitHub Desktop.
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
[TestFixture] | |
public class TransferTests | |
{ | |
[Test] | |
public void AmountTransferredFromPayerToPayee() | |
{ | |
// initialise accounts | |
double payerBalance = 0; | |
double payeeBalance = 0; | |
// credit payer with funds to allow transfer | |
payerBalance += 100; | |
// transfer 50 | |
payerBalance -= 50; | |
payeeBalance += 50; | |
Assert.That(payerBalance, Is.EqualTo(50)); | |
Assert.That(payeeBalance, Is.EqualTo(50)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment