Example #1
0
 public void Stop_codon_rna_sequence_2()
 {
     Assert.Empty(ProteinTranslation.Proteins("UAG"));
 }
Example #2
0
 public void Cysteine_rna_sequence_2()
 {
     Assert.Equal(new[] { "Cysteine" }, ProteinTranslation.Proteins("UGC"));
 }
Example #3
0
 public void Tryptophan_rna_sequence()
 {
     Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGG"));
 }
Example #4
0
 public void Tyrosine_rna_sequence_2()
 {
     Assert.Equal(new[] { "Tyrosine" }, ProteinTranslation.Proteins("UAC"));
 }
Example #5
0
 public void Methionine_rna_sequence()
 {
     Assert.Equal(new[] { "Methionine" }, ProteinTranslation.Proteins("AUG"));
 }
Example #6
0
 public void Leucine_rna_sequence_2()
 {
     Assert.Equal(new[] { "Leucine" }, ProteinTranslation.Proteins("UUG"));
 }
Example #7
0
 public void Serine_rna_sequence_4()
 {
     Assert.Equal(new[] { "Serine" }, ProteinTranslation.Proteins("UCG"));
 }
Example #8
0
 public void Translation_stops_if_stop_codon_in_middle_of_six_codon_sequence()
 {
     Assert.Equal(new[] { "Tryptophan", "Cysteine", "Tyrosine" }, ProteinTranslation.Proteins("UGGUGUUAUUAAUGGUUU"));
 }
Example #9
0
 public void Phenylalanine_rna_sequence_2()
 {
     Assert.Equal(new[] { "Phenylalanine" }, ProteinTranslation.Proteins("UUC"));
 }
Example #10
0
 public void Translation_stops_if_stop_codon_in_middle_of_three_codon_sequence()
 {
     Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGGUAGUGG"));
 }
Example #11
0
 public void Translation_stops_if_stop_codon_at_end_of_three_codon_sequence()
 {
     Assert.Equal(new[] { "Methionine", "Phenylalanine" }, ProteinTranslation.Proteins("AUGUUUUAA"));
 }
Example #12
0
 public void Translation_stops_if_stop_codon_at_end_of_two_codon_sequence()
 {
     Assert.Equal(new[] { "Tryptophan" }, ProteinTranslation.Proteins("UGGUAG"));
 }
Example #13
0
 public void Translation_stops_if_stop_codon_at_beginning_of_sequence()
 {
     Assert.Empty(ProteinTranslation.Proteins("UAGUGG"));
 }
Example #14
0
 public void Translate_rna_strand_into_correct_protein_list()
 {
     Assert.Equal(new[] { "Methionine", "Phenylalanine", "Tryptophan" }, ProteinTranslation.Proteins("AUGUUUUGG"));
 }