예제 #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.");
        }
예제 #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.");
        }
예제 #3
0
 public void SearchAllTest()
 {
     var collection = MSFT_MpThreat.SearchAll();
 }