public void GetDataPins_Tag_3() { IndexKeywordsPart part = GetPart(); List <DataPin> pins = part.GetDataPins().ToList(); Assert.Equal(3, pins.Count); // xkeyword..eng = Greek DataPin pin = pins[0]; Assert.Equal(part.ItemId, pin.ItemId); Assert.Equal(part.Id, pin.PartId); Assert.Equal(part.RoleId, pin.RoleId); Assert.Equal("xkeyword..eng", pin.Name); Assert.Equal("Greek", pin.Value); // xkeyword.colors.eng = green pin = pins[1]; Assert.Equal(part.ItemId, pin.ItemId); Assert.Equal(part.Id, pin.PartId); Assert.Equal(part.RoleId, pin.RoleId); Assert.Equal("xkeyword.colors.eng", pin.Name); Assert.Equal("green", pin.Value); // xkeyword.colors.eng = red pin = pins[2]; Assert.Equal(part.ItemId, pin.ItemId); Assert.Equal(part.Id, pin.PartId); Assert.Equal(part.RoleId, pin.RoleId); Assert.Equal("xkeyword.colors.eng", pin.Name); Assert.Equal("red", pin.Value); }
public void GetDataPins_NoKeywords_Empty() { IndexKeywordsPart part = GetPart(false); Assert.Empty(part.GetDataPins()); }