public static CustomInfo CreateCustomInfo(int index) { CustomInfo ci = new CustomInfo(); ci.Add(v[index + 0], v[index + 1]); ci.Add(v[index + 2], v[index + 3]); return(ci); }
public void AddSameDoesNotChange() { bool changed = false; var info = new CustomInfo(); info.Add("Test", "B"); info.CollectionChanged += () => changed = true; info.Add("Test", "B"); Assert.IsFalse(changed); }
public void Add() { var info = new CustomInfo(); info.Add("Test", "B"); Assert.AreEqual(info["Test"], "B"); }