コード例 #1
0
        public void People_OnClearData_IsEmpty()
        {
            var viewModel = new PeopleViewModel();

            viewModel.FetchData();

            viewModel.ClearData();

            Assert.AreEqual(0, viewModel.People.Count());
        }
コード例 #2
0
        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());
        }