public void GetDataPins_NoMetre_0() { MetricsLayerFragment fr = GetFragment(); fr.Metre = null; Assert.Empty(fr.GetDataPins()); }
public void GetDataPins_Metre_1() { MetricsLayerFragment fr = GetFragment(); List <DataPin> pins = fr.GetDataPins().ToList(); Assert.Single(pins); DataPin pin = pins[0]; Assert.Equal("fr.metre", pin.Name); Assert.Equal("6da^*", pin.Value); }