public void CleanupApplicationConfig() { // Make a new mod config. var appConfig = new ApplicationConfig() { AppIcon = RandomString(RandomStringLength), EnabledMods = new[] { RandomString(RandomStringLength), RandomString(RandomStringLength), RandomString(RandomStringLength), _realModConfig.ModId } }; // Remove fake mods from config. appConfig.CleanupConfig(_realAppConfigFilePath); // Check no dependencies exist. Assert.True(appConfig.EnabledMods.Length == 1); Assert.True(appConfig.EnabledMods[0] == _realModConfig.ModId); Assert.True(String.IsNullOrEmpty(appConfig.AppIcon)); }