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.TryGetGlobalProperty <T>(string name, out T value) { return(GlobalStyle.TryGetGlobalProperty(_GlobalStyles, name, out value)); }