public void Should_have_error_DirectionType_Next_Value(DirectionType directionType) { DirectionType nextDirectionType = directionType.NextValue(); DirectionType correctDirectionType = DirectionTypeList[(DirectionTypeList.IndexOf(directionType) + 1) % DirectionTypeList.Count()]; Assert.AreEqual(correctDirectionType, nextDirectionType); }