예제 #1
0
        public void ParseTuple1()
        {
            var arr    = new[] { "1" };
            var parsed = LabelsHelper.FromArray <ValueTuple <string> >(arr);

            Assert.Equal(ValueTuple.Create("1"), parsed);
        }
예제 #2
0
        public void ParseTuple0()
        {
            var arr    = new string[0];
            var parsed = LabelsHelper.FromArray <ValueTuple>(arr);

            Assert.Equal(ValueTuple.Create(), parsed);
        }