Ejemplo n.º 1
0
    public void IsFeatureControlSingleton()
    {
        IFeatureControl c1 = FeatureControl.Current;
        IFeatureControl c2 = FeatureControl.Current;

        Assert.AreSame(c1, c2);
    }
Ejemplo n.º 2
0
 static FeatureControl()
 {
     if (Current == null)
     {
         Current = new FeatureControl();
     }
 }
 static FeatureControl()
 {
     Current = new FeatureControl();
 }