Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/26/13 13:57:00 (11 years ago)
Author:
abeham
Message:

#2088: Added test attributes to further tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3/InstallationManagerTest.cs

    r9771 r9782  
    2525
    2626namespace HeuristicLab.PluginInfrastructure.Tests {
    27 
    28 
    2927  /// <summary>
    3028  ///This is a test class for InstallationManagerTest and is intended
     
    3331  [TestClass()]
    3432  public class InstallationManagerTest {
    35 
    36 
    37     private TestContext testContextInstance;
    38 
    39     /// <summary>
    40     ///Gets or sets the test context which provides
    41     ///information about and functionality for the current test run.
    42     ///</summary>
    43     public TestContext TestContext {
    44       get {
    45         return testContextInstance;
    46       }
    47       set {
    48         testContextInstance = value;
    49       }
    50     }
    51 
    52     #region Additional test attributes
    53     //
    54     //You can use the following additional attributes as you write your tests:
    55     //
    56     //Use ClassInitialize to run code before running the first test in the class
    57     //[ClassInitialize()]
    58     //public static void MyClassInitialize(TestContext testContext)
    59     //{
    60     //}
    61     //
    62     //Use ClassCleanup to run code after all tests in a class have run
    63     //[ClassCleanup()]
    64     //public static void MyClassCleanup()
    65     //{
    66     //}
    67     //
    68     //Use TestInitialize to run code before running each test
    69     //[TestInitialize()]
    70     //public void MyTestInitialize()
    71     //{
    72     //}
    73     //
    74     //Use TestCleanup to run code after each test has run
    75     //[TestCleanup()]
    76     //public void MyTestCleanup()
    77     //{
    78     //}
    79     //
    80     #endregion
    81 
    82 
    8333    /// <summary>
    8434    ///A test for GetRemotePluginList
    8535    ///</summary>
    8636    [TestMethod]
     37    [TestCategory("General")]
     38    [TestProperty("Time", "long")]
    8739    public void GetRemotePluginListTest() {
    8840      string pluginDir = Environment.CurrentDirectory;
     
    9143        var pluginList = target.GetRemotePluginList();
    9244        Assert.IsTrue(pluginList != null);
    93       }
    94       catch (Exception e) {
     45      } catch (Exception e) {
    9546        Assert.Fail("Connection to the update service failed. " + e.Message);
    9647      }
     
    10152    ///</summary>
    10253    [TestMethod]
     54    [TestCategory("General")]
     55    [TestProperty("Time", "short")]
    10356    public void GetRemoteProductListTest() {
    10457      string pluginDir = Environment.CurrentDirectory;
     
    10760        var productList = target.GetRemoteProductList();
    10861        Assert.IsTrue(productList != null);
    109       }
    110       catch (Exception e) {
     62      } catch (Exception e) {
    11163        Assert.Fail("Connection to the update service failed. " + e.Message);
    11264      }
Note: See TracChangeset for help on using the changeset viewer.