List <DataTest> CreateTestData() { List <DataTest> result = new List <DataTest>(); DataTest t1 = new DataTest { Test1 = 1, Test2 = "test1" }; DataTest t2 = new DataTest { Test1 = 2, Test2 = "test2" }; result.Add(t1); result.Add(t2); return(result); }
public override bool Equals(object obj) { DataTest other = obj as DataTest; return(Test1 == other.Test1 && Test2 == other.Test2); }