public void TrMarkupCurrentLanguageChangedOnTextBlock() { Loc.Instance.CurrentLanguage = "en"; Tr tr = new Tr("SayHello"); TextBlock textBlock = new TextBlock(); tr.ProvideValue(new TestsServiceProvider(textBlock, TextBlock.TextProperty)); textBlock.Text.ShouldBe("Hello"); Loc.Instance.CurrentLanguage = "fr"; textBlock.Text.ShouldBe("Bonjour"); }