public void ToTuple() { KeyValuePair<int, string> k = new KeyValuePair<int, string> (42, "42"); var t = k.ToTuple (); Assert.AreEqual (k.Key, t._1); Assert.AreEqual (k.Value, t._2); }
public void ToTuple() { KeyValuePair <int, string> k = new KeyValuePair <int, string> (42, "42"); var t = k.ToTuple(); Assert.AreEqual(k.Key, t.Item1); Assert.AreEqual(k.Value, t.Item2); }