Ejemplo n.º 1
0
        public void GetHashCode1()
        {
            var tupleCode = LabelsHelper.GetHashCode(ValueTuple.Create("1"));
            var arrayCode = LabelsHelper.GetHashCode(new [] { "1" });

            Assert.Equal(tupleCode, arrayCode);
        }
Ejemplo n.º 2
0
        public void GetHashCode8()
        {
            var tupleCode = LabelsHelper.GetHashCode(ValueTuple.Create("1", "2", "3", "4", "5", "6", "7", "8"));
            var arrayCode = LabelsHelper.GetHashCode(new [] { "1", "2", "3", "4", "5", "6", "7", "8" });

            Assert.Equal(tupleCode, arrayCode);
        }
Ejemplo n.º 3
0
        public void GetHashCode0()
        {
            var tupleCode = LabelsHelper.GetHashCode(ValueTuple.Create());
            var arrayCode = LabelsHelper.GetHashCode(new string[0]);

            Assert.Equal(tupleCode, arrayCode);
        }