Exemple #1
0
        public static MbUnitConfigurationSectionHandler GetConfig()
        {
            MbUnitConfigurationSectionHandler handler =
                ConfigurationSettings.GetConfig("mbunit") as MbUnitConfigurationSectionHandler;

            if (handler == null)
            {
                // return default
                handler = new MbUnitConfigurationSectionHandler();
                handler.FixtureFactories.Add("MbUnit.Core.ArgumentFixtureFactory, MbUnit.Framework");
                handler.FixtureFactories.Add("MbUnit.Core.FrameworkBridges.FrameworkFixtureFactory, MbUnit.Framework");
            }
            return(handler);
        }
 public static MbUnitConfigurationSectionHandler GetConfig()
 {
     MbUnitConfigurationSectionHandler handler =
         ConfigurationSettings.GetConfig("mbunit") as MbUnitConfigurationSectionHandler;
     if (handler == null)
     {
         // return default
         handler = new MbUnitConfigurationSectionHandler();
         handler.FixtureFactories.Add("MbUnit.Core.ArgumentFixtureFactory, MbUnit.Framework");
         handler.FixtureFactories.Add("MbUnit.Core.FrameworkBridges.FrameworkFixtureFactory, MbUnit.Framework");
     }
     return handler;
 }