コード例 #1
0
        public void GetHashCode1()
        {
            var tupleCode = LabelsHelper.GetHashCode(ValueTuple.Create("1"));
            var arrayCode = LabelsHelper.GetHashCode(new [] { "1" });

            Assert.Equal(tupleCode, arrayCode);
        }
コード例 #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);
        }
コード例 #3
0
        public void GetHashCode0()
        {
            var tupleCode = LabelsHelper.GetHashCode(ValueTuple.Create());
            var arrayCode = LabelsHelper.GetHashCode(new string[0]);

            Assert.Equal(tupleCode, arrayCode);
        }