Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }