// //You can use the following additional attributes as you write your tests: // //Use ClassInitialize to run code before running the first test in the class //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //Use ClassCleanup to run code after all tests in a class have run //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //Use TestInitialize to run code before running each test //[TestInitialize()] //public void MyTestInitialize() //{ //} // //Use TestCleanup to run code after each test has run //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion internal virtual RemoteExecutionController CreateRemoteExecutionController() { // TODO: Instantiate an appropriate concrete class. RemoteExecutionController target = null; return(target); }
public void RaiseConnectionLostEventTest() { ClientCall call = null; // TODO: Initialize to an appropriate value RemoteExecutionController.RaiseConnectionLostEvent(call); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void GetTest() { RemoteExecutionController target = CreateRemoteExecutionController(); // TODO: Initialize to an appropriate value HttpRequestMessage request = null; // TODO: Initialize to an appropriate value HttpResponseMessage expected = null; // TODO: Initialize to an appropriate value HttpResponseMessage actual; actual = target.Get(request); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
/// <summary> /// Execute the given call on the client /// </summary> /// <param name="remoteCall">The details of the call</param> /// <param name="raiseEventOnError">if false, no event will be raised if there is a communications problem</param> public static void ExecuteOnClient(ClientCall remoteCall, bool raiseEventOnError = true) { if (remoteCall == null) { throw new ArgumentNullException("remoteCall"); } if (!SseHelper.SendMessage(remoteCall, raiseEventOnError) && !raiseEventOnError) { //inform the user who made the call RemoteExecutionController.RaiseConnectionLostEvent(remoteCall); } }