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