public void TranscribeRnaTest() { // Arrange var dna = new Dna("GATGGAACTTGACTACGTAAATT"); var expectedRna = new Rna("GAUGGAACUUGACUACGUAAAUU"); // Act var resultRna = dna.TranscribeRna(); // Assert Assert.That(expectedRna, Is.EqualTo(resultRna)); }
public void ProtTest() { // Arrange var rna = new Rna("AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA"); var expectedProtein = new Protein("MAMAPRTEINSTRING"); // Act var protein = rna.EncodeProtein(); // Assert Assert.That(protein, Is.EqualTo(expectedProtein)); }
/// <summary> /// Solves the PROT problem (http://rosalind.info/problems/prot/). /// </summary> private static void SolveProt() { var protein = new Rna(File.ReadAllText(@"Data\PROT\rosalind_prot.txt")).EncodeProtein(); SaveResult(@"Results\rosalind_prot_results.txt", protein.ToString()); }