Ejemplo n.º 1
0
 public void ParserTest_ValidInpString_ShouldMatchValue(string inpString, NormalFlowCriterion expectedValue)
 => Assert.Equal(expectedValue, SetupProject(inpString).Database.GetOption <NormalFlowOption>().Value);
Ejemplo n.º 2
0
 public void ToInpString_ValidString_ShouldMatchValue(string expectedString, NormalFlowCriterion value)
 => Assert.Equal(PruneInpString(expectedString, OptionsHeader), new NormalFlowOption(value).ToInpString());
Ejemplo n.º 3
0
 /// <summary>
 /// Method that converts this <see cref="NormalFlowCriterion"/> into an inp string
 /// </summary>
 /// <param name="flowCriterion">This normal flow criterion option</param>
 /// <returns>Returns: An inp string that corresponds to this value</returns>
 public static string ToInpString(this NormalFlowCriterion flowCriterion) => flowCriterion switch
 {