public void GetCodonRange_AsExpected()
        {
            const int position    = 73115941;
            var       codingBlock = new CodingBlock(73115838, 73116000, 1);

            int range = CodonInfoProvider.GetCodonRange(position, codingBlock);

            Assert.Equal(73115941, range);
        }
Beispiel #2
0
        public void GetHashCode_TestDifference()
        {
            var codingBlock  = new CodingBlock(10, 20, 0);
            var codingBlock2 = new CodingBlock(11, 20, 0);
            var codingBlock3 = new CodingBlock(10, 21, 0);
            var codingBlock4 = new CodingBlock(10, 20, 1);

            var hashCodes = new HashSet <int>
            {
                codingBlock.GetHashCode(),
                codingBlock2.GetHashCode(),
                codingBlock3.GetHashCode(),
                codingBlock4.GetHashCode()
            };

            Assert.Equal(4, hashCodes.Count);
        }