AnalyzeCiFailureRuleTests.cs (7)
280RequireUnchangedCauseType(Cause("cause", type, currentTest, ["1"]), new StoredCauseIdentity(Value<CauseType>(type), priorTest));
289new StoredCauseIdentity(Value<CauseType>(priorType), priorTest)));
559private static ValidatedRun Run(string scope) => new(Value<RunScope>(scope), "https://github.com/microsoft/aspire/actions/runs/123", scope == "main" ? "" : "42");
560private static AnalysisJob Job(string id, string classification) => new() { Id = CiFailureJson.ToContract<System.Text.Json.JsonElement>(CiFailureJson.Parse(id)), Classification = Value<JobClassification>(classification) };
563=> new() { Name = name, Job = job, JobId = JsonSerializer.SerializeToElement(jobId), Classification = Value<TestClassification>(classification) };
568Value<CauseType>(type),
576=> new() { Verdict = Value<AnalysisVerdict>(verdict), Jobs = jobs, Tests = tests.IsDefault ? [] : tests, Causes = causeIds.IsDefault ? [] : causeIds };