public void ItemTypeEnumHelperTests_ConvertStringToEnum_Textbooks_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("Textbooks"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.Textbooks, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_Unknown_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("Unknown"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.Unknown, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_Notebook_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("Notebook"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.Notebook, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_PrivateTutor_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("PrivateTutor"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.PrivateTutor, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_LibraryCard_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("LibraryCard"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.LibraryCard, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_IndexCards_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("IndexCards"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.IndexCards, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_GraduationCapAndRobe_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("GraduationCapAndRobe"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.GraduationCapAndRobe, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_FinancialAid_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("FinancialAid"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.FinancialAid, result); }
public void ItemTypeEnumHelperTests_ConvertStringToEnum_Diploma_Should_Pass() { // Arrange // Act var result = ItemTypeEnumHelper.ConvertStringToEnum("Diploma"); // Reset // Assert Assert.AreEqual(ItemTypeEnum.Diploma, result); }
public void ItemTypeEnumHelper_ConvertStringToEnum_Should_Pass() { // Arrange var myList = Enum.GetNames(typeof(ItemTypeEnum)).ToList(); ItemTypeEnum myActual; ItemTypeEnum myExpected; // Act foreach (var item in myList) { myActual = ItemTypeEnumHelper.ConvertStringToEnum(item); myExpected = (ItemTypeEnum)Enum.Parse(typeof(ItemTypeEnum), item); // Assert Assert.AreEqual(myExpected, myActual, "string: " + item + TestContext.CurrentContext.Test.Name); } }