public async Task ReleaseDateTest() { ReleaseDate data = (await FredClient.GetReleaseDates("82", 0)).FirstOrDefault(); Assert.IsNotNull(data); Assert.IsFalse(IsZeroString(data.ReleaseID)); Assert.AreNotEqual(DateTime.MinValue, data.DateReleased); }
public async Task GetReleaseDatesTest() { List <ReleaseDate> data = await FredClient.GetReleaseDates("82", 0); Assert.IsNotNull(data); data = await FredClient.GetReleaseDates(DOES_NOT_EXIST, 0); Assert.IsNull(data); }