public void ShouldConvertNumericValueFromInt() { var original = EmployeeType.Values.Temp; var converted = new NumericValueTypeConverter <EmployeeType>().ConvertFrom(original.Value); Assert.That(converted, Is.EqualTo(original)); }
public void ShouldConvertNumericValueFromString() { var original = EmployeeType.Values.Permanent; var converted = new NumericValueTypeConverter <EmployeeType>().ConvertFrom(original.DisplayText); Assert.That(converted, Is.EqualTo(original)); }
public NumericValueTypeConverter() { converter = new NumericValueTypeConverter(typeof(T)); }