public void TestGetMinOrderNumber(int[] orders, int number) { var objects = orders.Select(x => new TestOrderObject { Order = x }).ToArray(); var result = OrderUtils.GetMinOrderNumber(objects); Assert.AreEqual(result, number); }