public void OrderUnderRestrictTestMethod3() { var ordersVM = new OrdersViewModel(); Order testOrder = new Order { Id = 3, City = "Саратов", Address = "Moskovskaya 48", FullName = "Ivan Ivanovich Egorov", MeasuringDate = DateTime.Now, Phone = "272730", IsDone = false }; List <Restriction> testRestrictions = new List <Restriction>() { new Restriction { City = "Москва", DateTimeInfo = DateTime.Now, RestrictionsCount = 5 }, //new Restriction{ City="Саратов", DateTimeInfo=DateTime.Now, RestrictionsCount=5}, new Restriction { City = "Волгоград", DateTimeInfo = DateTime.Now, RestrictionsCount = 5 } }; var result = ordersVM.OrderUnderRestrict(testOrder, testRestrictions); Assert.AreEqual(result, false); }