Example #1
0
		public void boundries_norm()
		{
			T_Norm norm = new drastic();
			Assert.Throws<ArgumentException>(delegate{norm.norm(-0.3, 0.5);}, "1");
			Assert.Throws<ArgumentException>(delegate{norm.norm(0.0, -0.4);}, "2");
			Assert.Throws<ArgumentException>(delegate{norm.norm(-0.1, -0.4);}, "3");
		}
Example #2
0
		public void normal_norm()
		{
			T_Norm norm = new drastic();
			Assert.AreEqual(0.0, norm.norm(0.7, 0.5), "1");
			Assert.AreEqual(0.5, norm.norm(0.5, 1.0), "2");
			Assert.AreEqual(0.5, norm.norm(1.0, 0.5), "3");
		}