public void GetCompleteServerNameTests() { Assert.Null(ReliableConnectionHelper.GetCompleteServerName(null)); Assert.NotNull(ReliableConnectionHelper.GetCompleteServerName("localhost")); Assert.NotNull(ReliableConnectionHelper.GetCompleteServerName("mytestservername")); }
public void TestGetCompleteServerName() { string name = ReliableConnectionHelper.GetCompleteServerName(@".\SQL2008"); Assert.True(name.Contains(Environment.MachineName)); name = ReliableConnectionHelper.GetCompleteServerName(@"(local)"); Assert.True(name.Contains(Environment.MachineName)); }