Exemplo n.º 1
0
        public void Merge_DifferentCombinations()
        {
            var interval = new Interval(17369, 17436);
            var uga37    = new UgaGene(ChromosomeUtilities.Chr1, interval, null, true, "102466751", null, "MIR6859-1", 50039);
            var uga38    = new UgaGene(ChromosomeUtilities.Chr1, null, interval, true, null, "ENSG00000278267", "MIR6859-1", 50039);

            var observedResult = CombinerUtils.Merge(uga37, uga38);

            Assert.Equal("102466751", observedResult.EntrezGeneId);
            Assert.Equal("ENSG00000278267", observedResult.EnsemblId);
        }
Exemplo n.º 2
0
        public void Merge_ThrowException_IfValuesDifferent()
        {
            var interval = new Interval(17369, 17436);
            var uga37    = new UgaGene(ChromosomeUtilities.Chr1, interval, null, true, "102466751", "ENSG00000278267", "MIR6859-1", 50039);
            var uga38    = new UgaGene(ChromosomeUtilities.Chr1, null, interval, true, "000000000", "ENSG00000278267", "MIR6859-1", 50039);

            Assert.Throws <InvalidDataException>(delegate
            {
                // ReSharper disable once UnusedVariable
                var observedResult = CombinerUtils.Merge(uga37, uga38);
            });
        }