public void Rna_complement() { Assert.Equal("UGCACCAGAAUU", RnaTranscription.ToRna("ACGTGGTCTTAA")); }
public void Empty_rna_sequence() { Assert.Equal("", RnaTranscription.ToRna("")); }
public void Rna_complement_of_thymine_is_adenine() { Assert.Equal("A", RnaTranscription.ToRna("T")); }
public void Rna_complement_of_adenine_is_uracil() { Assert.Equal("U", RnaTranscription.ToRna("A")); }
public void Rna_complement_of_guanine_is_cytosine() { Assert.Equal("C", RnaTranscription.ToRna("G")); }
public void Is_valid_Dna() { Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("ACGTGGTC8TTAA")); }
public void Correctly_handles_partially_invalid_dna_input() { Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("ACGTXXXCTTAA")); }
public void Correctly_handles_completely_invalid_dna_input() { Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("XXX")); }
public void Correctly_handles_invalid_input_rna_instead_of_dna_() { Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("U")); }