public void TestMethod1() { var FoodStates = new FoodStates(); FoodState foodState = FoodState.good; var expectedResult = "good"; FoodState result = FoodStates.GetFoodState(expectedResult); Assert.AreEqual(foodState, result); }
public void FoodTestMethod() { var FoodStates = new FoodStates(); FoodState foodState = FoodState.good; var expectedResult = "good"; FoodState result = FoodStates.GetFoodState(expectedResult); Assert.AreEqual(foodState, result); //Trying to use get string rather than get state (Doesnt Work) //var FoodStates = new FoodStates(); //FoodState foodState = FoodState.good; //var expectedResult = "good"; //FoodState result = FoodStates.GetFoodString(foodState expectedResult); //Assert.AreEqual(expectedResult, result); }