Ejemplo n.º 1
0
        public void Test4_DeleteOneProject()
        {
            DateTime Date       = new DateTime(2016, 10, 3);
            Project  newProject = new Project("ProjectName", Date);

            newProject.Save();

            DateTime Date2       = new DateTime(2016, 10, 3);
            Project  newProject2 = new Project("ProjectName", Date2);

            newProject2.Save();

            newProject.Delete();

            List <Project> allProjects = Project.GetAll();
            List <Project> testProject = new List <Project> {
                newProject2
            };

            Assert.Equal(testProject, allProjects);
        }