public void T5Fuzzification()
 {
     TestMF.Fuzzification(CrispVal);
     Assert.AreEqual(
         Eval.ReplaceNEvaluate(
             Expression, "@",
             CrispVal),
         TestMF.membershipValue.fuzzy);
 }
 public void T3Generate()
 {
     TestMF = MembershipFunction.fromJson(Json2);
     Assert.AreEqual(
         LinguisticName,
         TestMF.membershipValue.linguistic);
     TestMF.Fuzzification(4);
     Debug.Log("[Generate Test MF Result]\n" + TestMF.encodeCompleteJson().Print(true));
 }
 public void T4RangeCalibration()
 {
     TestMF = MembershipFunction.fromJson(Json2);
     Assert.AreEqual(
         LinguisticName,
         TestMF.membershipValue.linguistic);
     TestMF.Fuzzification(4);
     TestMF.rangeCalculation(1, 30, 0.1, 0.1);
     Debug.Log("[Range Calibration Test Result]\n" + TestMF.encodeCompleteJson().Print(true));
 }
 public void T6CompleteEncode()
 {
     TestMF = new MembershipFunction(
         LinguisticName, Expression);
     TestMF.Fuzzification(CrispVal);
     Assert.AreEqual(
         LinguisticName,
         TestMF.encodeCompleteJson().GetField("Name").str);
     Assert.AreEqual(
         Expression,
         TestMF.encodeCompleteJson().
         GetField("MembershipFunction").str);
     Assert.AreEqual(
         Eval.ReplaceNEvaluate(
             Expression, "@",
             CrispVal),
         TestMF.encodeCompleteJson().GetField("Fuzzy").f,
         0.01d);
 }