Exemple #1
0
        public void TestIsSubjectAccepted()
        {
            var strategy = new DomainFiller();

            Assert.IsTrue(strategy.IsParentAccepted(new DomainRoot()));
            Assert.IsFalse(strategy.IsParentAccepted(new ComputerPanelItem(null, "COMP01")));
        }
Exemple #2
0
        public void TestAsyncFill()
        {
            Utils.InitPlugins();
            var strategy = new DomainFiller();
            var result   = new Collection <PanelItemBase>();

            strategy.AsyncFill(null, result);
            Assert.Greater(result.Count, 0);
        }