Ejemplo n.º 1
0
        public void RemoveTest()
        {
            var threat = MSFT_MpThreat.SearchAll().FirstOrDefault();

            if (threat != null)
            {
                threat.Remove();
                return;
            }
            Assert.Inconclusive("Not have " + nameof(MSFT_MpThreat) + " Item.");
        }
Ejemplo n.º 2
0
        public void SearchByThreatIDTest()
        {
            var threat = MSFT_MpThreat.SearchAll().FirstOrDefault();

            if (threat != null)
            {
                var newThreat = MSFT_MpThreat.SearchByThreatID(threat.ThreatID);
                Assert.AreEqual(newThreat.ThreatID, threat.ThreatID);
                return;
            }
            Assert.Inconclusive("Not have " + nameof(MSFT_MpThreat) + " Item.");
        }
Ejemplo n.º 3
0
 public void SearchAllTest()
 {
     var collection = MSFT_MpThreat.SearchAll();
 }