private static void AssertEqualKeys([NotNull] ICollection <InvolvedRow> involvedRows) { string involvedRowsKey = ExceptionObjectUtils.GetKey(involvedRows); string involvedTablesKey = ExceptionObjectUtils.GetKey( IssueUtils.GetInvolvedTables(involvedRows)); Console.WriteLine(@"Involved rows key: [{0}]", involvedRowsKey); Console.WriteLine(@"Involved tables key: [{0}]", involvedTablesKey); Assert.AreEqual(involvedRowsKey, involvedTablesKey); }
public void CanGetInvolvedTablesKeyFastEnough() { var involvedRows = new List <InvolvedRow> { new InvolvedRow("Table2", 100), new InvolvedRow("Table1", 1000), new InvolvedRow("Table2", 200) }; IEnumerable <InvolvedTable> involvedTables = IssueUtils.GetInvolvedTables(involvedRows); AssertFastEnough(() => ExceptionObjectUtils.GetKey(involvedTables), 10000, 0.1); }