public void Must_not_be_possible_to_get_system_characteristics_of_collectExecution_with_Error_probeExecution() { CollectExecution collectExecution = new CollectExecutionFactory().CreateACollectExecutionWithError(provider.GetSession()); IEnumerable<oval_system_characteristics> systemCharacteristics = collectExecution.GetSystemCharacteristics(); Assert.IsNotNull(systemCharacteristics, "the system characteristics is null"); Assert.IsTrue(systemCharacteristics.Count() == 0); }
public void Should_be_possible_to_get_all_system_characteristics_of_a_collectExecution() { CollectExecution collectExecution = new CollectExecutionFactory().CreateACollectExecutionComplete(provider.GetSession()); IEnumerable<oval_system_characteristics> systemCharacteristics = collectExecution.GetSystemCharacteristics(); Assert.IsNotNull(systemCharacteristics, "the system characteristics is null"); Assert.IsTrue(systemCharacteristics.Count() == 1); }
public void Shoud_be_possible_to_verify_if_exists_an_probeExecution_with_error() { CollectExecution collectExecution = new CollectExecutionFactory().CreateACollectExecutionWithError(provider.GetSession()); IEnumerable<oval_system_characteristics> systemCharacteristics = collectExecution.GetSystemCharacteristics(); Assert.IsTrue(collectExecution.ExistsExecutionsWithError(), "the collectionExecution is not have error."); }