public void TestWrongStopCodon() { string stopCodon = "UUA"; bool expectedResult = false; bool calculatedResult = StopCodonDetector.CheckIfItIsStopCodonAndUpdateStopCodonCounter(stopCodon); Assert.AreEqual(expectedResult, calculatedResult); }
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); }
public bool CheckIfIsItNoiseCodonAndUpdateNoiseCounter() { bool isNoiseCodon = false; if (IsItNoiseCodon()) { isNoiseCodon = true; StopCodonDetector.ResetStopCodonCounter(); } return(isNoiseCodon); }
public void Setup() { StopCodonDetector.ResetStopCodonCounter(); }
public void Setup() { AllocateNoiseDetectorMemoryIfNecessary(); StopCodonDetector.ResetStopCodonCounter(); }
private bool IsItNoiseCodon() { return(StopCodonDetector.GetStopCodonCounter() > C_NOISE_CODON_CONDITION); }