public void InitializationForImpossibleProbabilityTest() { var input = new List <string> { "0%" }; var element = new EventElement(null, new List <int>() { 1 }, input); var state = new StateModel { Variables = new Dictionary <string, decimal> { } }; element.Execute(state); Assert.Equal(0, element.NextElementIds.Count); }
public void InitializationForCertainProbabilityTest() { var input = new List <string> { "101%" }; var element = new EventElement(null, new List <int>() { 1 }, input); var state = new StateModel { Variables = new Dictionary <string, decimal> { } }; element.Execute(state); Assert.Contains(1, element.NextElementIds); }