The CashRegisterTester uses the CashRegister type. It can only use the members that are public.
The constructor and all the methods are public. So they are accessible to the tester class.
The variables used to store the current purchase total and the payment are private. The tester class cannot use the dot notation to access these members.