Example #1
0
 public void Identifies_methionine_codons(string codon)
 {
     Assert.That(ProteinTranslation.Translate(codon), Is.EquivalentTo(new[] { "Methionine" }));
 }
Example #2
0
 public void Throws_for_invalid_codons()
 {
     Assert.That(() => ProteinTranslation.Translate("CARROT"), Throws.Exception);
 }
Example #3
0
 public void Stops_translation_of_longer_strand()
 {
     Assert.That(ProteinTranslation.Translate("UGGUGUUAUUAAUGGUUU"), Is.EquivalentTo(new[] { "Tryptophan", "Cysteine", "Tyrosine" }));
 }
Example #4
0
 public void Stops_translation_if_stop_codon_present()
 {
     Assert.That(ProteinTranslation.Translate("AUGUUUUAA"), Is.EquivalentTo(new[] { "Methionine", "Phenylalanine" }));
 }
Example #5
0
 public void Translates_rna_strand_into_correct_protein()
 {
     Assert.That(ProteinTranslation.Translate("AUGUUUUGG"), Is.EquivalentTo(new[] { "Methionine", "Phenylalanine", "Tryptophan" }));
 }
Example #6
0
 public void Identifies_tryptophan_codons(string codon)
 {
     Assert.That(ProteinTranslation.Translate(codon), Is.EquivalentTo(new[] { "Tryptophan" }));
 }