using Endpoint; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace EndpointTest { /// /// Tests for WindowsServiceEndpoint /// [TestClass] public class WindowsServiceEndpointTest { /// /// Use a service that should always be running on localhost /// private const string SERVICENAME = "Windows Time"; /// /// Runs GetStatus /// [TestMethod] public void GetStatusTest() { var target = new WindowsServiceEndpoint { ServiceName = SERVICENAME }; var status = target.GetStatus(); Assert.AreEqual(Status.Up, status); } } }