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); }
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); }
public void ToStringTest() { var sut = new EinsteinEvaluation(); Assert.AreEqual("Einstein Evaluation", sut.ToString()); }