public void FormatTuple8() { var tuple = ("1", "2", "3", "4", "5", "6", "7", "8"); var formatted = LabelsHelper.ToArray(tuple); Assert.Equal(new[] { "1", "2", "3", "4", "5", "6", "7", "8" }, formatted); }
public void FormatTuple16() { var tuple = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"); var formatted = LabelsHelper.ToArray(tuple); Assert.Equal(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" }, formatted); }
public void FormatTuple1() { var tuple = ValueTuple.Create("1"); var formatted = LabelsHelper.ToArray(tuple); Assert.Equal(new[] { "1" }, formatted); }
public void FormatTuple2() { var tuple = ("1", "2"); var formatted = LabelsHelper.ToArray(tuple); Assert.Equal(new[] { "1", "2" }, formatted); }
public void FormatTuple0() { var tuple = ValueTuple.Create(); var formatted = LabelsHelper.ToArray(tuple); Assert.Equal(new string[0], formatted); }
public void ThrowOnEnumLabelName16() { var labels = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", MetricType.Untyped); Assert.Throws <NotSupportedException>(() => LabelsHelper.ToArray(labels)); }
public void ThrowOnEnumLabelName1() { var labels = ValueTuple.Create(MetricType.Untyped); Assert.Throws <NotSupportedException>(() => LabelsHelper.ToArray(labels)); }
public void ThrowOnIntLabelName8() { var labels = ("1", "2", "3", "4", "5", "6", "7", 8); Assert.Throws <NotSupportedException>(() => LabelsHelper.ToArray(labels)); }
public void ThrowOnIntLabelName1() { var labels = ValueTuple.Create(1); Assert.Throws <NotSupportedException>(() => LabelsHelper.ToArray(labels)); }