public void Should_be_possible_to_collect_a_FileEffectiveRights53Object() { #region //<fileeffectiverights53_object id="oval:modulo:obj:1000" version="1"> // <path>c:\temp</path> // <filename>file1.txt</filename> // <trustee_sid>S-1-15-18</trustee_sid> //</fileeffectiverights53_object> #endregion var prober = new FileEffectiveRights53Prober() { FileSystemDataSource = new FileObjectCollector(), FileProvider = new WindowsFileProvider(FakeTargetInfo) }; CreateBehaviorForNormalFlowExecution(prober, FakeItemTypes, FakeCollectedItems); var result = prober.Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("1000")); DoAssertForSingleCollectedObject(result, typeof(fileeffectiverights_item)); }
public void If_any_occurs_while_item_type_creation_an_item_with_error_status_must_be_returned() { var prober = new FileEffectiveRights53Prober() { FileSystemDataSource = new FileObjectCollector(), FileProvider = new WindowsFileProvider(FakeTargetInfo) }; CreateBehaviorWithExceptionThrowing(prober); var result = prober.Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("1000")); DoAssertForExecutionWithErrors(result, typeof(fileeffectiverights_item)); }