Ejemplo n.º 1
0
 public void SetUp()
 {
     scId = Guid.NewGuid();
     scName = "My Service Control";
     executablePath = "C:\\program files\\my test thing.exe";
     defaultControlArguments = "-h 1234 -c -w -a 99";
     sc = new ServiceControl(scId, scName, executablePath, defaultControlArguments);
 }
Ejemplo n.º 2
0
 public void Should_Be_Restorable_From_StateObject()
 {
     var state = (ServiceControlState)sc.GetState();
     var restored = new ServiceControl(state);
     AssertEx.PropertyValuesAreEquals(restored, sc);
 }