Esempio n. 1
0
        public void TestCORPow()
        {
            //arrange
            double i        = 3;
            double j        = 5;
            int    expected = 15;

            //act
            DefaultStrategy def    = new DefaultStrategy();
            int             actual = def.COR(i, j);

            //assert
            Assert.AreEqual(Math.Pow(expected, 2), actual);
        }
Esempio n. 2
0
        public void TestCORNotNuLL()
        {
            //arrange
            double i = 3;
            double j = 5;


            //act
            DefaultStrategy def    = new DefaultStrategy();
            int             actual = def.COR(i, j);

            //assert
            Assert.IsNotNull(actual);
        }
Esempio n. 3
0
        public void TestCOR0()
        {
            //arrange
            double i        = 1;
            double j        = 0;
            int    expected = 0;

            //act
            DefaultStrategy def    = new DefaultStrategy();
            int             actual = def.COR(i, j);

            //assert
            Assert.AreEqual(expected, actual);
        }