public void TestMethod1() { IQueryable <MyC1DataType> data = new MyC1DataType[] { new HiddenImp("Hej"), new HiddenImp("med"), new HiddenImp("Dig") }.AsQueryable(); IQueryable <MyClass> mappedData = data.Map().To <MyClass>(); IQueryable <MyClass> mappedData1 = data.Map().To <MyClass>(); for (int i = 0; i < data.Count(); i++) { Assert.AreEqual(data.ElementAt(i).PropertyTwo, mappedData.ElementAt(i).PropertyTwo); } }
public void TestMethod1() { IQueryable<MyC1DataType> data = new MyC1DataType[] { new HiddenImp("Hej"), new HiddenImp("med"), new HiddenImp("Dig") }.AsQueryable(); IQueryable<MyClass> mappedData = data.Map().To<MyClass>(); IQueryable<MyClass> mappedData1 = data.Map().To<MyClass>(); for (int i = 0; i < data.Count(); i++) { Assert.AreEqual(data.ElementAt(i).PropertyTwo, mappedData.ElementAt(i).PropertyTwo); } }