public void SampleTest4() { var lines = new[] { "AAGCTT", "AAGCTC", "GAGCTT" }; var compressor = new DnaCompressor(); var expected = new[] { "AAGCTC", "RAGCTT", null }; compressor.Compress(lines, _progress); CollectionAssert.AreEquivalent(expected, lines); }
public void SampleTest3() { var lines = new[] { "AA", "AC", "AT", "CA", "CC", "CT", "TA", "TC", "TT", }; var compressor = new DnaCompressor(); var expected = new[] { "HH", null, null, null, null, null, null, null, null }; compressor.Compress(lines, _progress); CollectionAssert.AreEquivalent(expected, lines); }
public void SampleTest2() { var lines = File.ReadAllLines(Path.Combine(TestContext.CurrentContext.TestDirectory, @"Data\615x10_input.txt")); var compressor = new DnaCompressor(); var expected = File.ReadAllLines(Path.Combine(TestContext.CurrentContext.TestDirectory, @"Data\615x10_output_17.txt")); compressor.Compress(lines, _progress); CollectionAssert.AreEquivalent(expected, lines.Where(l => l != null)); }