Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created April 23, 2019 07:50
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 jasongorman/5fd312bcbe0411d68401e062a2bbeaa0 to your computer and use it in GitHub Desktop.
Save jasongorman/5fd312bcbe0411d68401e062a2bbeaa0 to your computer and use it in GitHub Desktop.
[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