So let’s test our method by writing a test.
Since we create the instance of the ATM at runtime we would expect the balance to be whatever we pass as parameters.
public void TestAdd()
{
ATM atm = new ATM();
int expectthree = atm.Add(3);
Assert.AreEqual(4, expectthree);
}

Now if we build this it should fail since we are telling our AreEqual that we are expecting a 3 to be returned.

Now let’s change our expectations and instead pass a 3 and let’s see what happens.

There we go! Now in the next post let’s write a loop that maintains our console application running until we want it to quit.