Beispiel #1
0
        public void OutOfBoundsStates_CriticalVSR_row_5()
        {
            // row 5
            float mRR = 600;

            Assert.AreEqual(5, vsrCalc.Mrr2SmRow(mRR));
            AssertCriticalVsr(mRR, 3);
            AssertCriticalVsr(mRR, 100);

            Assert.AreEqual(0, vsrCalc.SigmaRR2SmCol(5, 100));
            Assert.IsTrue(vsrCalc.IsCriticalSigmaRR(5, 100));
        }
Beispiel #2
0
        public void SigmaRR2SmCol_Out_Of_Bound_No_Exceptions()
        {
            Upft130VsrCalculator calc = new Upft130VsrCalculator();

            int col = calc.SigmaRR2SmCol(1, 121);

            Assert.AreEqual(0, col);

            col = calc.SigmaRR2SmCol(1, 24);
            Assert.AreEqual(6, col);

            col = calc.SigmaRR2SmCol(5, 121);
            Assert.AreEqual(0, col);

            col = calc.SigmaRR2SmCol(5, 4);
            Assert.AreEqual(6, col);
        }
Beispiel #3
0
        public void Calc_Row_5_shall_return_5_for_sigmaRR_at_6ms()
        {
            Upft130VsrCalculator calc = new Upft130VsrCalculator();
            int col1 = calc.SigmaRR2SmCol(5, 6.0);

            Assert.AreEqual(col1, 5);

            Upft130VsrCalculator calculator = new Upft130VsrCalculator();
        }
Beispiel #4
0
        public void Calc_Row_4_shall_return_1_for_sigmaRR_at_99ms()
        {
            Upft130VsrCalculator calc = new Upft130VsrCalculator();
            int col1 = calc.SigmaRR2SmCol(4, 99.0);

            Assert.AreEqual(col1, 1);

            Upft130VsrCalculator calculator = new Upft130VsrCalculator();
        }