public void DifferentLenghts()
		{
			WeightedAverage S = new WeightedAverage();
			S.crisp_input = new double[3]{1, 1, 1};
			S.weights = new double[2]{1, 1};
			Assert.Throws(typeof(ArgumentException), delegate{S.calculate_crisp();}, "");
		}
		public void Valid()
		{
			WeightedAverage S = new WeightedAverage();
			S.crisp_input = new double[3]{1, 1, 1};
			S.weights = new double[3]{1, 1, 1};
			Assert.AreEqual(1, S.calculate_crisp(), "");
			S.crisp_input = new double[3]{1, 2, 3};
			S.weights = new double[3]{1, 1, 1};
			Assert.AreEqual(2, S.calculate_crisp(), "");
			S.crisp_input = new double[1]{1};
			S.weights = new double[1]{5};
			Assert.AreEqual(1, S.calculate_crisp(), "");
			S.crisp_input = new double[3]{1, 2, 3};
			S.weights = new double[3]{2, 2, 1};
			Assert.AreEqual(1.8, S.calculate_crisp(), "");
			S.crisp_input = new double[3]{1, 2, 3};
			S.weights = new double[3]{1, 3, 1};
			Assert.AreEqual(2, S.calculate_crisp(), "");
		}
		public void EmptyWeights()
		{
			WeightedAverage S = new WeightedAverage();
			S.crisp_input = new double[3]{1, 1, 1};
			Assert.Throws(typeof(MissingFieldException), delegate{S.calculate_crisp();}, "");
		}
		public void EmptyInput()
		{
			WeightedAverage S = new WeightedAverage();
			Assert.Throws(typeof(MissingFieldException), delegate{S.calculate_crisp();}, "");
		}