public void TestStructNegative() { Size size1 = new Size(); size1.Width = 800; size1.Height = 600; Size size2 = new Size(); size2.Width = 1024; size2.Height = 768; List<Size> list1 = new List<Size>(); list1.Add(size1); list1.Add(size2); List<Size> list2 = new List<Size>(); list2.Add(size1); Size size3= new Size(); size3.Width= 1025; size3.Height = 768; list2.Add(size3); Assert.IsFalse(_compare.Compare(list1, list2)); }
public void TestStruct() { Size size1 = new Size(); size1.Width = 800; size1.Height = 600; Size size2 = new Size(); size2.Width = 1024; size2.Height = 768; List<Size> list1 = new List<Size>(); list1.Add(size1); list1.Add(size2); List<Size> list2 = new List<Size>(); list2.Add(size1); list2.Add(size2); if (!_compare.Compare(list1, list2)) throw new Exception(_compare.DifferencesString); }