public void TestCreateConstraintsEmptyReturnEmptyDict() { List <string> constraint = new List <string>(); var tool = new CreateHelper(); Dictionary <string, string> ret = tool.CreateConstraints(constraint); Assert.AreEqual(ret.Count, 0); }
public void TestCreateConstraintsWrongLinesReturnNull() { List <string> constraint = new List <string>() { "testLineNotTake", "testanotherLineNotTake&é\"'(-è_çà)+¹~#{[|`\\^@]}¤─./§%µ,;:!ù*", }; var tool = new CreateHelper(); Dictionary <string, string> ret = tool.CreateConstraints(constraint); Assert.AreEqual(ret.Count, 0); }
public void TestCreateConstraints() { List <string> constraint = new List <string>() { "constant1=value1=2", "constant2=value3", }; var tool = new CreateHelper(); Dictionary <string, string> ret = tool.CreateConstraints(constraint); Assert.AreEqual(ret["constant1"], "value1=2"); Assert.AreEqual(ret["constant2"], "value3"); }