Ejemplo n.º 1
0
        public void test_111_getCurrentActiveProject_negative_input()
        {
            String s = "";

            try
            {
                IQueryable <Project> test_collection = d.GetCurrentActiveProject(-1);
            }
            catch (Exception e)
            {
                s = e.ToString();
            }

            Assert.IsTrue(s.Contains("ArgumentOutOfRangeException"));
        }
Ejemplo n.º 2
0
 private void FillCurrentProject()
 {
     CurrentProject = project.GetCurrentActiveProject(StudentNumber).FirstOrDefault();
     HasProject     = (CurrentProject != null);
 }