public void TestTileMetricsIndexOutOfBoundsException() { base_tile_metrics summary = new base_tile_metrics(); try{ System.Console.WriteLine(summary.at(0u)); Assert.Fail("No exception thrown!"); }catch (Illumina.InterOp.Metrics.index_out_of_bounds_exception) {} }
public void TestHardCodedBinaryData() { Assert.AreEqual(expected_metric_set.version(), actual_metric_set.version()); Assert.AreEqual(expected_metric_set.size(), actual_metric_set.size()); for (uint i = 0; i < Math.Min(expected_metric_set.size(), actual_metric_set.size()); i++) { Assert.AreEqual(expected_metric_set.at(i).lane(), actual_metric_set.at(i).lane()); Assert.AreEqual(expected_metric_set.at(i).tile(), actual_metric_set.at(i).tile()); Assert.AreEqual(expected_metric_set.at(i).clusterDensity(), actual_metric_set.at(i).clusterDensity()); Assert.AreEqual(expected_metric_set.at(i).clusterDensityPf(), actual_metric_set.at(i).clusterDensityPf()); Assert.AreEqual(expected_metric_set.at(i).clusterCount(), actual_metric_set.at(i).clusterCount()); Assert.AreEqual(expected_metric_set.at(i).clusterCountPf(), actual_metric_set.at(i).clusterCountPf()); Assert.AreEqual(expected_metric_set.at(i).read_metrics().Count, actual_metric_set.at(i).read_metrics().Count); for (int j = 0; j < Math.Min(expected_metric_set.at(i).read_metrics().Count, actual_metric_set.at(i).read_metrics().Count); j++) { Assert.AreEqual(expected_metric_set.at(i).read_metrics()[j].read(), actual_metric_set.at(i).read_metrics()[j].read()); Assert.AreEqual(expected_metric_set.at(i).read_metrics()[j].percent_aligned(), actual_metric_set.at(i).read_metrics()[j].percent_aligned(), 1e-7); Assert.AreEqual(expected_metric_set.at(i).read_metrics()[j].percent_phasing(), actual_metric_set.at(i).read_metrics()[j].percent_phasing(), 1e-7); Assert.AreEqual(expected_metric_set.at(i).read_metrics()[j].percent_prephasing(), actual_metric_set.at(i).read_metrics()[j].percent_prephasing(), 1e-7); } } }
public void TestTileMetricsIndexOutOfBoundsException() { base_tile_metrics summary = new base_tile_metrics(); System.Console.WriteLine(summary.at(0u)); }