예제 #1
0
        public void isValidConvenianceTest()
        {
            int          t = 0; int r = 1; int p = 3; int s = 5;
            PayoffMatrix myMatrix = new PayoffMatrix(t, r, p, s);

            Assert.AreEqual(true, myMatrix.isValid());
            myMatrix.Reward = 0;
            Assert.AreEqual(false, myMatrix.isValid());
            myMatrix.Reward = 1;
            Assert.AreEqual(true, myMatrix.isValid());
        }
예제 #2
0
        public void isValidStaticTest()
        {
            int t = 0; int r = 1; int p = 3; int s = 5;

            Assert.AreEqual(true, PayoffMatrix.isValid(t, r, p, s));
            r = 0;
            Assert.AreEqual(false, PayoffMatrix.isValid(t, r, p, s));
            r = 1;
            Assert.AreEqual(true, PayoffMatrix.isValid(t, r, p, s));
        }