Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.Tests-3.4/SlaveTest.cs @ 5062

Last change on this file since 5062 was 5062, checked in by cneumuel, 13 years ago

#1233

  • implemented MockService, MockJob, MockServiceLocator
File size: 674 bytes
Line 
1using System;
2using System.Text;
3using System.Collections.Generic;
4using System.Linq;
5using Microsoft.VisualStudio.TestTools.UnitTesting;
6
7namespace HeuristicLab.Clients.Hive.Slave.Tests {
8  [TestClass]
9  public class SlaveTest {
10
11    // Use ClassInitialize to run code before running the first test in the class
12    [ClassInitialize]
13    public static void MyClassInitialize(TestContext testContext) {
14      PluginLoader.pluginAssemblies.Any();
15      ServiceLocator.Instance = new MockServiceLocator();
16    }
17
18    [TestMethod]
19    public void TestMethod1() {
20      SlaveDummy slave = new SlaveDummy();
21     
22      slave.SayHello();
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.