Esempio n. 1
0
        public void test_51_getStartAndEndDate_invalid_input()
        {
            String exception = "";

            try
            {
                Dictionary <string, string> b = d.getStartAndEndDate(-1);
            }
            catch (Exception e)
            {
                exception = e.ToString();
            }

            Assert.IsTrue(exception.Contains("ArgumentOutOfRangeException"));
        }
Esempio n. 2
0
 private void GetDates()
 {
     foreach (KeyValuePair <string, string> pair in project.getStartAndEndDate(projectNumber))
     {
         BeginDate = DateTime.Parse(pair.Key);
         EndDate   = DateTime.Parse(pair.Value);
     }
 }
Esempio n. 3
0
        public string ShowStartAndEndDate()
        {
            Dictionary <string, string> d = project.getStartAndEndDate(1);//IMPORTANT, uses a test value
            string s = "";

            foreach (KeyValuePair <string, string> pair in d)
            {
                s = pair.Key + " tot " + pair.Value + ")";
            }

            return(s);
        }