public void CharacterJobEnumConverterHelper_ConvertBack_String_Should_Pass() { // Arrange var myConverter = new CharacterJobEnumConverterHelper(); var myObject = "Pet Lover"; // Act var result = myConverter.ConvertBack(myObject, typeof(CharacterJobEnum), null, null); // Reset // Assert Assert.AreEqual(result, CharacterJobEnum.PetLover); }
public void CharacterJobEnumConverterHelper_ConvertBack_Other_Should_Skip() { // Arrange var myConverter = new CharacterJobEnumConverterHelper(); var myObject = new ItemModel(); // Act var result = myConverter.ConvertBack(myObject, typeof(CharacterJobEnum), null, null); // Reset // Assert Assert.AreEqual(result, 0); }