Пример #1
0
 public void Rna_complement()
 {
     Assert.Equal("UGCACCAGAAUU", RnaTranscription.ToRna("ACGTGGTCTTAA"));
 }
Пример #2
0
 public void Empty_rna_sequence()
 {
     Assert.Equal("", RnaTranscription.ToRna(""));
 }
Пример #3
0
 public void Rna_complement_of_thymine_is_adenine()
 {
     Assert.Equal("A", RnaTranscription.ToRna("T"));
 }
Пример #4
0
 public void Rna_complement_of_adenine_is_uracil()
 {
     Assert.Equal("U", RnaTranscription.ToRna("A"));
 }
Пример #5
0
 public void Rna_complement_of_guanine_is_cytosine()
 {
     Assert.Equal("C", RnaTranscription.ToRna("G"));
 }
Пример #6
0
 public void Is_valid_Dna()
 {
     Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("ACGTGGTC8TTAA"));
 }
Пример #7
0
 public void Correctly_handles_partially_invalid_dna_input()
 {
     Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("ACGTXXXCTTAA"));
 }
Пример #8
0
 public void Correctly_handles_completely_invalid_dna_input()
 {
     Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("XXX"));
 }
Пример #9
0
 public void Correctly_handles_invalid_input_rna_instead_of_dna_()
 {
     Assert.Throws <ArgumentException>(() => RnaTranscription.ToRna("U"));
 }