Пример #1
0
        public void TestpNotNUll()
        {
            //arrange
            double i = 11;
            double j = 13;

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

            //assert
            Assert.IsNotNull(actual);
        }
Пример #2
0
        public void TestENTGeneral()
        {
            //arrange
            double i        = 0.11;
            double j        = 0.7;
            int    expected = 0;

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

            //assert
            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void TestENTiLessj()
        {
            //arrange
            double i        = 2;
            double j        = 8;
            int    expected = 32;

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

            //assert
            Assert.AreEqual(expected, actual);
        }
Пример #4
0
        public void TestENTjequali()
        {
            //arrange
            double i        = 3;
            double j        = 3;
            int    expected = 18;

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

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