public void ClearButton_Test() { // Arrange var customersVM = new CustomersViewModel(_container, _windowManager, _customerAccess); customersVM.NewCustomer.Name = "sampleName"; customersVM.NewCustomer.Address = "sampleAddress"; customersVM.NewCustomer.City = "sampleCity"; // Act customersVM.ClearButton(); // Assert Assert.Equal("", customersVM.NewCustomer.Name); Assert.Equal("", customersVM.NewCustomer.Address); Assert.Equal("", customersVM.NewCustomer.City); }