示例#1
0
        public void HashCode()
        {
            var onekItem = new OneKGenItem("chr1", 100, "rs1001", "A", "C", "a", null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null);

            var onekHash = new HashSet <OneKGenItem> {
                onekItem
            };

            Assert.Equal(1, onekHash.Count);
            Assert.True(onekHash.Contains(onekItem));
        }
示例#2
0
        public void HashCode()
        {
            var chr1     = new Chromosome("chr1", "1", 0);
            var onekItem = new OneKGenItem(chr1, 100, "rs1001", "A", "C", "a", null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, 100, 0, 0);

            var onekHash = new HashSet <OneKGenItem> {
                onekItem
            };

            Assert.Single(onekHash);
            Assert.Contains(onekItem, onekHash);
        }