Пример #1
0
        public async Task CalendarService_SucessfullyRetrieveAddedEvent(GoogleCalendarService service, string eventId)
        {
            try
            {
                var dummyRetrieved = await service.GetEvent(eventId);

                if (dummyRetrieved == null || dummyRetrieved.Summary != "dummy event")
                {
                    Assert.Fail("Incorrect dummy event retrieved");
                }
            }
            catch (Exception ex)
            {
                Assert.Fail("Failed to get event: " + ex.Message);
            }
        }