public void Test_GetValuesSortedByTranslation_Ok() { EnumTranslator enumTranslator = InitTranslations(); VehicleType[] enumValues = enumTranslator.GetValuesSortedByTranslation <VehicleType>(new CultureInfo("de"), EnumTranslationType.Default); Assert.NotNull(enumValues); Assert.Equal(4, enumValues.Length); Assert.Equal(VehicleType.Car, enumValues[0]); Assert.Equal(VehicleType.Bicycle, enumValues[1]); Assert.Equal(VehicleType.Motorbike, enumValues[2]); Assert.Equal(VehicleType.Scooter, enumValues[3]); }