예제 #1
0
        public void And()
        {
            var sut = new EinsteinEvaluation();

            const double a = 0.2;
            const double b = 0.6;

            var result = sut.And(a, b);

            Assert.AreEqual((a*b)/(2 - (a + b - a*b)), result);
        }
예제 #2
0
        public void Or()
        {
            var sut = new EinsteinEvaluation();

            const double a = 0.2;
            const double b = 0.6;

            var result = sut.Or(a, b);

            Assert.AreEqual((a + b)/(1 + a*b), result);
        }
예제 #3
0
        public void ToStringTest()
        {
            var sut = new EinsteinEvaluation();

            Assert.AreEqual("Einstein Evaluation", sut.ToString());
        }