public void IsFeatureControlSingleton() { IFeatureControl c1 = FeatureControl.Current; IFeatureControl c2 = FeatureControl.Current; Assert.AreSame(c1, c2); }
static FeatureControl() { if (Current == null) { Current = new FeatureControl(); } }
static FeatureControl() { Current = new FeatureControl(); }