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