public void GetDataPins_NoCitation_Empty() { TiledTextPart part = GetPart(); part.Citation = null; Assert.Empty(part.GetDataPins()); }
public void GetDataPins_Citation_1() { TiledTextPart part = GetPart(); List <DataPin> pins = part.GetDataPins().ToList(); Assert.Single(pins); DataPin pin = pins[0]; Assert.Equal(part.ItemId, pin.ItemId); Assert.Equal(part.Id, pin.PartId); Assert.Equal(part.RoleId, pin.RoleId); Assert.Equal("citation", pin.Name); Assert.Equal("some-citation", pin.Value); }