public void GetServerList() { ServerTypes serverType = ServerTypes.WindowsNT; string domain = null; ServerInfo[] actual; actual = ExtendedNetworkInformation.GetServerList(serverType, domain); CustomAssert.IsNotEmpty(actual); CollectionAssert.AllItemsAreNotNull(actual); CollectionAssert.AllItemsAreUnique(actual); CollectionAssert.AllItemsAreInstancesOfType(actual, typeof(ServerInfo)); }
public void GetServerList2() { ServerTypes serverType = ServerTypes.VMS; string domain = "GOOFY"; ServerInfo[] actual; try { actual = ExtendedNetworkInformation.GetServerList(serverType, domain); } catch (Win32Exception e) { Assert.IsTrue(true, e.Message); } catch (Exception e) { Assert.Fail(e.Message); } }