public void GetTransitionsNotFoundAsDictionaryTest() { var case1 = new Case("case1") { EventList = new List<Event> { new Event("A"), new Event("B") } }; var case2 = new Case("case2") { EventList = new List<Event> { new Event("C"), new Event("D") } }; var result = new TokenReplayResult { FailedCasesTransitionNotFound = new List<Case> { case1, case1, case2 }, }; var dict = (Dictionary<string, int>)result.GetTransitionsNotFoundAsDictionary(); Assert.AreEqual(2, dict["A, B"]); Assert.AreEqual(1, dict["C, D"]); }