예제 #1
0
        public void PopulateBAMPaths()
        {
            //Happy Path
            var options_1 = new ApplicationOptions()
            {
                BAMFolder     = UnitTestPaths.TestDataDirectory,
                GenomePaths   = new[] { _existingGenome },
                IntervalPaths = new[] { _existingInterval }
            };

            options_1.PopulateBAMPaths();
            Assert.NotNull(options_1.BAMPaths);
            Assert.True(options_1.BAMPaths.Length > 0);

            //no bam files found
            var options_3 = new ApplicationOptions()
            {
                BAMFolder   = UnitTestPaths.TestGenomesDirectory,
                GenomePaths = new[] { _existingGenome },
            };

            Assert.Throws <ArgumentException>(() => options_3.PopulateBAMPaths());
        }