public void ParsingParameters() { var def = PatternDefinition.ParseFromConfig(new XElement("On", new XAttribute("pattern", "..*.*"), new XAttribute("logParam", true), new XAttribute("otherParam", "Test")), true); def.Parameters.Count.Should().Be(2); def.Parameters.Keys.Should().Contain("logParam"); def.Parameters.Keys.Should().Contain("otherParam"); def.Parameters["logParam"].Should().Be("true"); def.Parameters["otherParam"].Should().Be("Test"); }
public void ParsingParametersNoParameters() { var def = PatternDefinition.ParseFromConfig(new XElement("On", new XAttribute("pattern", "..*.*")), true); def.Parameters.Count.Should().Be(0); }