Exemplo n.º 1
0
        public void AddExpertNull()
        {
            string FIO = "Test";
            var    service = new Service1();
            bool   expected = true; Service1.Experts Expert = new Service1.Experts

            {
                FIO = "Test test test"
            };
            service.AddExpert(Expert);
            Assert.AreEqual(expected, service.MoreThanNull);
        }
Exemplo n.º 2
0
        public void AddExpertTest()
        {
            var service        = new Service1();
            var ExpertCountPre = service.SelectExperts().Count;

            Service1.Experts Expert = new Service1.Experts
            {
                FIO = "Test test test"
            };
            service.AddExpert(Expert);
            var ExpertCountPost = service.SelectExperts().Count;

            Assert.AreEqual(ExpertCountPre + 1, ExpertCountPost);
        }