public void RemapFromInt_ShouldReturnCorrectEnum_WhenPassedAnIntWithCorrespondingValue() { var enumValues = Enum.GetValues(typeof(ApprenticeshipLevel)) .OfType <ApprenticeshipLevel>(); foreach (ApprenticeshipLevel enumValue in enumValues) { ApprenticeshipLevel result = ApprenticeshipLevelHelper.RemapFromInt((int)enumValue); result.Should().Be(enumValue); } }
public void RemapFromInt_ShouldReturnDegree_WhenConvertingFromMasters7() { ApprenticeshipLevel result = ApprenticeshipLevelHelper.RemapFromInt(7); result.Should().Be(ApprenticeshipLevel.Degree); }
public void RemapFromInt_ShouldReturnHigher_WhenConvertingFromFoundation5() { ApprenticeshipLevel result = ApprenticeshipLevelHelper.RemapFromInt(5); result.Should().Be(ApprenticeshipLevel.Higher); }