Exemple #1
0
 public void Rna_complement()
 {
     Assert.Equal("UGCACCAGAAUU", RnaTranscription.ToRna("ACGTGGTCTTAA"));
 }
Exemple #2
0
 public void Empty_rna_sequence()
 {
     Assert.Equal("", RnaTranscription.ToRna(""));
 }
Exemple #3
0
 public void Rna_complement_of_thymine_is_adenine()
 {
     Assert.Equal("A", RnaTranscription.ToRna("T"));
 }
Exemple #4
0
 public void Rna_complement_of_adenine_is_uracil()
 {
     Assert.Equal("U", RnaTranscription.ToRna("A"));
 }
Exemple #5
0
 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"));
 }