1+ // This file was auto-generated based on version 1.0.1 of the canonical data.
2+
13using Xunit ;
24
3- public class ComplementTest
5+ public class RnaTranscriptionTest
46{
57 [ Fact ]
68 public void Rna_complement_of_cytosine_is_guanine ( )
79 {
8- Assert . Equal ( "G" , Complement . OfDna ( "C" ) ) ;
10+ Assert . Equal ( "G" , RnaTranscription . ToRna ( "C" ) ) ;
911 }
1012
1113 [ Fact ( Skip = "Remove to run test" ) ]
1214 public void Rna_complement_of_guanine_is_cytosine ( )
1315 {
14- Assert . Equal ( "C" , Complement . OfDna ( "G" ) ) ;
16+ Assert . Equal ( "C" , RnaTranscription . ToRna ( "G" ) ) ;
1517 }
1618
1719 [ Fact ( Skip = "Remove to run test" ) ]
1820 public void Rna_complement_of_thymine_is_adenine ( )
1921 {
20- Assert . Equal ( "A" , Complement . OfDna ( "T" ) ) ;
22+ Assert . Equal ( "A" , RnaTranscription . ToRna ( "T" ) ) ;
2123 }
2224
2325 [ Fact ( Skip = "Remove to run test" ) ]
2426 public void Rna_complement_of_adenine_is_uracil ( )
2527 {
26- Assert . Equal ( "U" , Complement . OfDna ( "A" ) ) ;
28+ Assert . Equal ( "U" , RnaTranscription . ToRna ( "A" ) ) ;
2729 }
2830
2931 [ Fact ( Skip = "Remove to run test" ) ]
3032 public void Rna_complement ( )
3133 {
32- Assert . Equal ( "UGCACCAGAAUU" , Complement . OfDna ( "ACGTGGTCTTAA" ) ) ;
34+ Assert . Equal ( "UGCACCAGAAUU" , RnaTranscription . ToRna ( "ACGTGGTCTTAA" ) ) ;
35+ }
36+
37+ [ Fact ( Skip = "Remove to run test" ) ]
38+ public void Correctly_handles_invalid_input_rna_instead_of_dna_ ( )
39+ {
40+ Assert . Null ( RnaTranscription . ToRna ( "U" ) ) ;
41+ }
42+
43+ [ Fact ( Skip = "Remove to run test" ) ]
44+ public void Correctly_handles_completely_invalid_dna_input ( )
45+ {
46+ Assert . Null ( RnaTranscription . ToRna ( "XXX" ) ) ;
47+ }
48+
49+ [ Fact ( Skip = "Remove to run test" ) ]
50+ public void Correctly_handles_partially_invalid_dna_input ( )
51+ {
52+ Assert . Null ( RnaTranscription . ToRna ( "ACGTXXXCTTAA" ) ) ;
3353 }
3454}
0 commit comments