public void LocalizationResourceManager_PropertyChanged_Triggered() { // Arrange var culture2 = new CultureInfo("en"); localizationManager.SetCulture(culture2); CultureInfo changedCulture = null; localizationManager.PropertyChanged += (s, e) => changedCulture = localizationManager.CurrentCulture; // Act, Assert localizationManager.Init(resourceManager, initialCulture); Assert.Equal(initialCulture, changedCulture); localizationManager.SetCulture(culture2); Assert.Equal(culture2, changedCulture); }
public LocalizationResourceManagerTests() { resourceManager = new MockResourceManager(); localizationManager = new LocalizationResourceManager(); localizationManager.Init(resourceManager, initialCulture); }