public void TestLoad() { var engine = new InferenceEngine(); engine.Load(new WeightModel()); Assert.AreEqual(2, engine.Rules.Count); }
public void TestRun() { var engine = new InferenceEngine(); engine.Load(new WeightModel()); engine["kilograms"] = 5.0; engine.Run(); Assert.AreEqual(5 * 2.2, engine["pounds"]); }