public void ClassifyTest_ShouldSaveResults_UpdateRestaurantsInDB() { string classifierName = "CuisinesSupervised1"; RealTenTestRestaurants restaurantsSource = new RealTenTestRestaurants(); RestaurantsClassifier restClassifier = new RestaurantsClassifier(restaurantsSource, classifierName); var classified = restClassifier.Classify(); restClassifier.SaveResults(); //Assert Assert.IsNotNull(classified); }
public void ClassifyTest_ShouldGetRestaurantsListBySourcForClassification() { string classifierName = "CuisinesSupervised1"; RestaurantsClassifier restClassifier = new RestaurantsClassifier(testRests, classifierName); var classified = restClassifier.Classify(); //Assert Assert.IsNotNull(classified); Assert.IsTrue(classified.Count == testRests.restaurantsList.Count); Assert.IsFalse(classified.Any(r => r.Cuisines == null)); Assert.IsFalse(classified.Any(r => r.Cuisines.Count <= 0)); }