- Timestamp:
- 07/26/13 13:57:00 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3/InstallationManagerTest.cs
r9771 r9782 25 25 26 26 namespace HeuristicLab.PluginInfrastructure.Tests { 27 28 29 27 /// <summary> 30 28 ///This is a test class for InstallationManagerTest and is intended … … 33 31 [TestClass()] 34 32 public class InstallationManagerTest { 35 36 37 private TestContext testContextInstance;38 39 /// <summary>40 ///Gets or sets the test context which provides41 ///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 attributes53 //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 class57 //[ClassInitialize()]58 //public static void MyClassInitialize(TestContext testContext)59 //{60 //}61 //62 //Use ClassCleanup to run code after all tests in a class have run63 //[ClassCleanup()]64 //public static void MyClassCleanup()65 //{66 //}67 //68 //Use TestInitialize to run code before running each test69 //[TestInitialize()]70 //public void MyTestInitialize()71 //{72 //}73 //74 //Use TestCleanup to run code after each test has run75 //[TestCleanup()]76 //public void MyTestCleanup()77 //{78 //}79 //80 #endregion81 82 83 33 /// <summary> 84 34 ///A test for GetRemotePluginList 85 35 ///</summary> 86 36 [TestMethod] 37 [TestCategory("General")] 38 [TestProperty("Time", "long")] 87 39 public void GetRemotePluginListTest() { 88 40 string pluginDir = Environment.CurrentDirectory; … … 91 43 var pluginList = target.GetRemotePluginList(); 92 44 Assert.IsTrue(pluginList != null); 93 } 94 catch (Exception e) { 45 } catch (Exception e) { 95 46 Assert.Fail("Connection to the update service failed. " + e.Message); 96 47 } … … 101 52 ///</summary> 102 53 [TestMethod] 54 [TestCategory("General")] 55 [TestProperty("Time", "short")] 103 56 public void GetRemoteProductListTest() { 104 57 string pluginDir = Environment.CurrentDirectory; … … 107 60 var productList = target.GetRemoteProductList(); 108 61 Assert.IsTrue(productList != null); 109 } 110 catch (Exception e) { 62 } catch (Exception e) { 111 63 Assert.Fail("Connection to the update service failed. " + e.Message); 112 64 } -
trunk/sources/HeuristicLab.Tests/HeuristicLab.PluginInfraStructure-3.3/TypeExtensionsTest.cs
r9776 r9782 22 22 using System.Collections; 23 23 using System.Collections.Generic; 24 using System.Linq;25 24 using HeuristicLab.Core; 26 25 using HeuristicLab.Data; 27 26 using HeuristicLab.Parameters; 28 27 using HeuristicLab.Problems.DataAnalysis; 29 using HeuristicLab.Tests;30 28 using Microsoft.VisualStudio.TestTools.UnitTesting; 31 29 … … 35 33 /// </summary> 36 34 [TestClass] 37 public class TypeDiscoveryTest { 38 public TypeDiscoveryTest() { } 39 40 private TestContext testContextInstance; 41 42 /// <summary> 43 ///Gets or sets the test context which provides 44 ///information about and functionality for the current test run. 45 ///</summary> 46 public TestContext TestContext { 47 get { return testContextInstance; } 48 set { testContextInstance = value; } 49 } 50 51 public static void MyClassInitialize(TestContext testContext) { 52 PluginLoader.Assemblies.Any(); 53 } 54 35 public class TypeExtensionsTest { 55 36 [TestMethod] 37 [TestCategory("General")] 38 [TestProperty("Time", "short")] 56 39 public void IsSubTypeOfTest() { 57 40 Assert.IsTrue(typeof(int).IsSubTypeOf(typeof(object))); … … 79 62 80 63 [TestMethod] 64 [TestCategory("General")] 65 [TestProperty("Time", "short")] 81 66 public void BuildTypeTest() { 82 67 Assert.AreEqual(typeof(List<>).BuildType(typeof(List<>)), typeof(List<>));
Note: See TracChangeset
for help on using the changeset viewer.