public void SpecificCharacterTypeEnumConverterHelper_ConvertBack_String_Should_Pass() { var myConverter = new SpecificCharacterTypeEnumConverter(); string myObject = "CoolParent"; var Result = myConverter.ConvertBack(myObject, null, null, null); var Expected = SpecificCharacterTypeEnum.CoolParent; Assert.AreEqual(Expected, Result, TestContext.CurrentContext.Test.Name); }
public void SpecificCharacterTypeEnumConverterHelper_ConvertBack_Int_Should_Pass() { var myConverter = new SpecificCharacterTypeEnumConverter(); int myObject = 50; var Result = myConverter.ConvertBack(myObject, typeof(SpecificCharacterTypeEnum), null, null); var Expected = "Cool Parent"; Assert.AreEqual(Expected, Result, TestContext.CurrentContext.Test.Name); }