Beispiel #1
0
        public override object Clone()
        {
            var result = new ComputerPanelItem(Parent, SI);

            result.Comment = Comment;
            return(result);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public void TestComputerPanelItem()
 {
     m_Comp = new ComputerPanelItem(null, (ServerInfo)null);
     Assert.IsNotNull(m_Comp.SI);
 }