public string ParamNameRegex(string config) { File.Copy(config, "allureConfig.json", true); var configuration = new PluginConfiguration(AllureLifecycle.CreateInstance().Configuration); return(configuration.ParamNameRegex?.ToString()); }
public void Defaults(string config) { RestoreState(config); var allureCycle = AllureLifecycle.CreateInstance(); Assert.IsType <AllureLifecycle>(allureCycle); }
public void ShouldAccessConfigProperties() { var config = @"{""allure"":{""customKey"": ""customValue""}}"; RestoreState(config); var cycle = AllureLifecycle.CreateInstance(); Assert.Equal("customValue", cycle.Configuration["allure:customKey"]); }