public override object Clone() { var result = new ComputerPanelItem(Parent, SI); result.Comment = Comment; return(result); }
public void SetUp() { var info = new ServerInfo(); info.Name = "COMP01"; info.Comment = "Hello world"; info.Version.PlatformID = (uint)SV_101_PLATFORM.PLATFORM_ID_NT; info.Version.Major = 6; info.Version.Minor = 2; m_Comp = new ComputerPanelItem(null, info); }
public void TestAsyncFill() { Utils.InitPlugins(); var strategy = new ShareFiller(); string domain = WorkstationInfo.FromComputer(null).LanGroup; var computer = new ComputerPanelItem(new DomainPanelItem(new DomainRoot(), domain), SystemInformation.ComputerName); ShareFiller.ShowHiddenShares = true; var result = new Collection <PanelItemBase>(); strategy.AsyncFill(computer, result); Assert.Greater(result.Count, 0); Assert.IsInstanceOf <SharePanelItem>(result[0]); ShareFiller.ShowHiddenShares = false; strategy.AsyncFill(computer, result); }
public void TestComputerPanelItem() { m_Comp = new ComputerPanelItem(null, (ServerInfo)null); Assert.IsNotNull(m_Comp.SI); }