public void GetDataPins_NoWork_0() { QuotationLayerFragment fr = GetFragment(); fr.Work = null; Assert.Empty(fr.GetDataPins()); }
public void GetDataPins_NoAuthor_0() { QuotationLayerFragment fr = GetFragment(); fr.Author = null; Assert.Empty(fr.GetDataPins()); }
public void GetDataPins_AuthorAndWork_2() { QuotationLayerFragment fr = GetFragment(); List <DataPin> pins = fr.GetDataPins().ToList(); Assert.Equal(2, pins.Count); DataPin pin = pins[0]; Assert.Equal("fr.author", pin.Name); Assert.Equal("Hom.", pin.Value); pin = pins[1]; Assert.Equal("fr.work", pin.Name); Assert.Equal("Il.", pin.Value); }