Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
      // Initialise data table to hold test results
      _results.Columns.Add("test");
      _results.Columns.Add("result");
      _results.Columns.Add("time");
      _results.Columns.Add("message");
      _results.Columns.Add("class");

      // Initialise controls
      lblResult.Text = "";
      ltlStats.Text = "";

      // Initialise NUnit
      CoreExtensions.Host.InitializeService();

      // Find tests in current assembly
      _testPackage = new TestPackage(Assembly.GetExecutingAssembly().Location);

      if (!IsPostBack)
      {
        var testSuite = new TestSuiteBuilder().Build(_testPackage);
        var categoryManager = new CategoryManager();
        categoryManager.AddAllCategories(testSuite);

        cblCategories.DataSource = (from string cat in categoryManager.Categories select cat).OrderBy(x => x);
        cblCategories.DataBind();
      }
    }
Пример #2
0
        public IList GetCategories()
        {
            CategoryManager categoryManager = new CategoryManager();

            categoryManager.AddAllCategories(this.loadedTest);
            ArrayList list = new ArrayList(categoryManager.Categories);

            list.Sort();
            return(list);
        }
Пример #3
0
		public IList GetCategories() 
		{
			CategoryManager categoryManager = new CategoryManager();
			categoryManager.AddAllCategories( this.loadedTest );
			ArrayList list = new ArrayList( categoryManager.Categories );
			list.Sort();
			return list;
		}
Пример #4
0
        protected void LoadCategories(ITest test)
        {
            var categoryManager = new CategoryManager();
            categoryManager.AddAllCategories(test);

            cblCategories.DataSource = (from string cat in categoryManager.Categories select cat).OrderBy(x => x);
            cblCategories.DataBind();
        }