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")); }
private void FillCurrentProject() { CurrentProject = project.GetCurrentActiveProject(StudentNumber).FirstOrDefault(); HasProject = (CurrentProject != null); }