public void Panel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) { using var control = new SubPanel(); Assert.Equal(expected, control.GetStyle(flag)); // Call again to test caching. Assert.Equal(expected, control.GetStyle(flag)); }