public void RemoveTest() { var threat = MSFT_MpThreat.SearchAll().FirstOrDefault(); if (threat != null) { threat.Remove(); return; } Assert.Inconclusive("Not have " + nameof(MSFT_MpThreat) + " Item."); }
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."); }
public void SearchAllTest() { var collection = MSFT_MpThreat.SearchAll(); }