/// <summary> /// Convert LuigiFeatureFlags2 into a ProgramFeatures object. /// </summary> /// <param name="featureFlags2">The flags to convert,</param> /// <returns>ProgramFeatures representing the compatibility modes described by the feature flags.</returns> public static ProgramFeatures ToProgramFeatures(this LuigiFeatureFlags2 featureFlags2) { // No relevant features are currently defined in LuigiFeatureFlags2. var programFeatures = ProgramFeatures.GetUnrecognizedRomFeatures(); return(programFeatures); }
public void LuigiFeatureFlags2_ToProgramFeatures_ProducesCorrectFeatures(LuigiFeatureFlags2 featureBits) { Assert.Equal(ProgramFeatures.GetUnrecognizedRomFeatures(), featureBits.ToProgramFeatures()); }