Пример #1
0
        public void TestWrongStopCodon()
        {
            string stopCodon        = "UUA";
            bool   expectedResult   = false;
            bool   calculatedResult = StopCodonDetector.CheckIfItIsStopCodonAndUpdateStopCodonCounter(stopCodon);

            Assert.AreEqual(expectedResult, calculatedResult);
        }
Пример #2
0
        public void TestStopCodonUAADetected()
        {
            string stopCodon        = "UAA";
            bool   expectedResult   = true;
            bool   calculatedResult = StopCodonDetector.CheckIfItIsStopCodonAndUpdateStopCodonCounter(stopCodon);

            Assert.AreEqual(expectedResult, calculatedResult);
        }
        public void TestNoNoiseCodon()
        {
            string stopCodon = "UAG";

            StopCodonDetector.CheckIfItIsStopCodonAndUpdateStopCodonCounter(stopCodon);
            bool expectedResult   = false;
            bool calculatedResult = _noiseCodonDetectorHandler.CheckIfIsItNoiseCodonAndUpdateNoiseCounter();

            Assert.AreEqual(expectedResult, calculatedResult);
        }
Пример #4
0
        public bool CheckIfIsItNoiseCodonAndUpdateNoiseCounter()
        {
            bool isNoiseCodon = false;

            if (IsItNoiseCodon())
            {
                isNoiseCodon = true;
                StopCodonDetector.ResetStopCodonCounter();
            }

            return(isNoiseCodon);
        }
Пример #5
0
 public void Setup()
 {
     StopCodonDetector.ResetStopCodonCounter();
 }
 public void Setup()
 {
     AllocateNoiseDetectorMemoryIfNecessary();
     StopCodonDetector.ResetStopCodonCounter();
 }
Пример #7
0
 private bool IsItNoiseCodon()
 {
     return(StopCodonDetector.GetStopCodonCounter() > C_NOISE_CODON_CONDITION);
 }