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