public void Transformations_AbstractTrace_ResolveMany1() { var list = new List <string>(); list.Add("a"); AssertExtensions.AssertContainsOnly(trace.ResolveManyIn <string, string>(ruleT1, list), "b"); AssertExtensions.AssertContainsOnly(trace.ResolveMany <string, string>(list), "b"); list.Clear(); list.Add("b"); AssertExtensions.AssertContainsOnly(trace.ResolveManyIn <string, string>(ruleT1, list), null); AssertExtensions.AssertContainsOnly(trace.ResolveMany <string, string>(list), null); list.Clear(); list.Add("c"); Assert.IsTrue(trace.ResolveManyIn <string, string>(ruleT1, list).IsNullOrEmpty()); Assert.IsTrue(trace.ResolveManyIn <string, string>(ruleT1, list).IsNullOrEmpty()); list.Add("a"); list.Add("b"); var collection = trace.ResolveManyIn <string, string>(ruleT1, list); Assert.AreEqual(2, collection.Count()); Assert.IsTrue(collection.Contains("b")); Assert.IsTrue(collection.Contains(null)); }