예제 #1
0
        public void Model_Create_Person()
        {
            _view.CreateFirstNameText = "Abraham";
            _view.CreateLastNameText  = "Lincoln";
            _view.CreateAgeText       = "19";
            _view.CreateTlfText       = "11111112";
            _view.CreateMajorText     = "Computer Science 101";
            _view.CreateStudentRadio  = true;

            _view.buttonCreate();

            string expected = "Abraham Lincoln, Alder: 19, Tlf: 11111112, Student";
            string actual   = _manage.GetPeople[8].ToString();

            string expectedFededback = "Oprettet!";
            string actualFeedback    = _view.CreatePersonText;


            Assert.AreEqual(expected, actual);
            Assert.AreEqual(expectedFededback, actualFeedback);
        }