public void When_Value_Is_Not_Set_GetRelatedEntities_Return_Empty_List() { // arrange var parser = new ContentPickerParser(); // act var result = parser.GetRelatedEntities(null); // assert Assert.IsNotNull(result); Assert.AreEqual(0, result.Count()); }
public void When_Value_Is_Set_GetRelatedEntities_Return_List_With_Related_Entities() { // arrange var contentUdi = "umb://document/ca4249ed2b234337b52263cabe5587d1"; var parser = new ContentPickerParser(); // act var result = parser.GetRelatedEntities(contentUdi).ToList(); // assert Assert.IsNotNull(result); Assert.AreEqual(1, result.Count); Assert.IsTrue(result.Exists(x => x.RelatedEntityUdi.ToString() == contentUdi)); }