public void TestGlobalStyle() { var obj = new _GlobalStyleFrontEndExample(); Assert.IsTrue(GlobalStyle.TrySetGlobalProperty(obj, GlobalStyle.COLOR, ColorStyle.Red)); Assert.IsTrue(GlobalStyle.TryGetGlobalProperty <ColorStyle>(obj, GlobalStyle.COLOR, out var color)); Assert.AreEqual(ColorStyle.Red, color); }
bool GlobalStyle.ISource.TrySetGlobalProperty <T>(string name, T value) { return(GlobalStyle.TrySetGlobalProperty(ref _GlobalStyles, name, value)); }