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