


In the BankTests project, add a reference to the Bank project. The BankTests project is added to the Bank solution. Name the project BankTests and click Next.Ĭhoose either the recommended target framework or. In Visual Studio 2019 version 16.9, the MSTest project template is Unit Test Project. Throw new ArgumentOutOfRangeException("amount") Public BankAccount(string customerName, double balance) Replace the contents of Program.cs with the following C# code that defines a class, BankAccount: using System If Program.cs is not open in the editor, double-click the file Program.cs in Solution Explorer to open it.
