public static void SerializeTest() { var target = new CommonEventIntArgList { [0] = 130, [2] = -332, }; var clone = DeepCloner.DeepClone(target); Assert.IsTrue(clone.Equals(target)); }
public static void AccessorTest(int index, int value) { var instance = new CommonEventIntArgList { [index] = value }; for (var i = 0; i < 4; i++) { Assert.AreEqual(instance[i], i == index ? value : 0); } }