public void GetLastPairInCollection() { var actually = new PairsCollection<string, int>(); actually.Add("Item", 55); actually.Add("Item2", 56); Assert.AreEqual(Tuple.Create("Item2", 56), actually.GetLastPair()); }
public String ShouldWorkingWithIndex(String word, int value) { var actually = new PairsCollection<string, int>(); actually.Add(word, value); if (actually.Length > 0) return actually[0].Item1; return null; }
public bool ShouldAddDataInCollection(String word, int value) { var actually = new PairsCollection<string, int>(); return actually.Add(word, value); }