예제 #1
0
        public void IncorrectDateParams(string date)
        {
            MarsRoverService svc      = new MarsRoverService();
            BaseService      baseSvc  = new BaseService();
            Response         response = new Response();

            string parsedDate = baseSvc.parseDate(date);

            if (parsedDate != "01/01/0001")
            {
                response = svc.GetMarsRorverPhoto(parsedDate);
            }

            Assert.True(response.photos == null || response.photos.Count < 1);
        }