public void IsDayComplete_ReturnsFalseWithNoDayData() { var dayItem = new ContentChannelItem { ChildItems = new ContentChannelItemAssociation[] { new ContentChannelItemAssociation { Order = 0, ChildContentChannelItem = new ContentChannelItem { Id = 1, Order = 0, Attributes = new Dictionary <string, Web.Cache.AttributeCache>(), AttributeValues = new Dictionary <string, Web.Cache.AttributeValueCache>() } }, }, Attributes = new Dictionary <string, Web.Cache.AttributeCache>(), AttributeValues = new Dictionary <string, Web.Cache.AttributeValueCache>() }; var dailyChallenge = new CachedDailyChallenge(dayItem); var dayData = new InteractionChallengeDayData(); Assert.IsFalse(IsDayComplete(dayData, dailyChallenge.ChallengeItems)); }
public void IsDayComplete_ReturnsTrueWithNoChallengeItemsDefined() { var dayData = new InteractionChallengeDayData(); var challengeItems = new CachedChallengeItem[] { }; Assert.IsTrue(IsDayComplete(dayData, challengeItems)); }