Пример #1
0
 public void Setup()
 {
     Environment.CurrentDirectory = Path.GetDirectoryName(Assembly.GetAssembly(typeof(SetupFixture)).Location);
     AtomInitializer.Initialize();
     HtmlInitializer.Initialize();
     TestHelper.TestService = CreateDefaultService();
 }
Пример #2
0
        /// <summary>
        /// Executed before each test method is run. Override in subclasses to do subclass
        /// set up. Remember to call base.SetUp().
        /// NOTE: The [SetUp] attribute cannot be used in subclasses because it is already
        /// in use.
        /// </summary>
        protected virtual void SetUp()
        {
            RamoneConfiguration.Reset();
            AtomInitializer.Initialize();
            HtmlInitializer.Initialize();

            // Create a new session for each test
            Session = TestService.NewSession();
        }