public void UpdatedEnclosingItem_UpdatesDetails() { DetailCollection collection = new DetailCollection(); collection.Add("hello"); var item = new Content.AnItem(); collection.EnclosingItem = item; Assert.That(collection.EnclosingItem, Is.EqualTo(item)); Assert.That(collection.Details[0].EnclosingItem, Is.EqualTo(item)); }
public virtual void SetUp() { item = new Content.AnItem(); }