public void People_OnClearData_IsEmpty() { var viewModel = new PeopleViewModel(); viewModel.FetchData(); viewModel.ClearData(); Assert.AreEqual(0, viewModel.People.Count()); }
public void People_OnClearData_IsEmpty() { //Assert var viewModel = new PeopleViewModel(); viewModel.FetchData(); Assert.AreEqual(2, viewModel.People.Count(), "Invalid Arrangement"); //Act viewModel.ClearData(); //Assert Assert.AreEqual(0, viewModel.People.Count()); }