public void Model_Converter_IntEnumConverter_Convert_Should_Pass() { var myConverter = new IntEnumConverter(); var myObject = ItemLocationEnum.Feet; var Result = myConverter.Convert(myObject, null, null, null); var Expected = 40; Assert.AreEqual(Expected, Result, TestContext.CurrentContext.Test.Name); }
public void Model_Converter_IntEnumConverter_Convert_Should_Skip() { var myConverter = new IntEnumConverter(); var myObject = "Bogus"; var Result = myConverter.Convert(myObject, null, null, null); var Expected = 0; Assert.AreEqual(Expected, Result, TestContext.CurrentContext.Test.Name); }