Ejemplo n.º 1
0
		public void boundries_neg()
		{
			T_Norm norm = new naive();
			Assert.Throws<ArgumentException>(delegate{norm.neg(-0.3);}, "1");
			Assert.Throws<ArgumentException>(delegate{norm.neg(1.2);}, "2");
		}
Ejemplo n.º 2
0
		public void normal_neg()
		{
			T_Norm norm = new naive();
			Assert.AreEqual(0.7, norm.neg(0.3), "1");
			Assert.AreEqual(0.5, norm.neg(0.5), "2");
			Assert.AreEqual(1.0, norm.neg(0.0), "3");
			Assert.AreEqual(0.0, norm.neg(1.0), "3");
		}