<commit_before><commit_msg>Added Get-EventSubscriber pester test<commit_after>Describe "Get-EventSubscriber" {
   
        AfterEach {
            Unregister-Event -SourceIdentifier PesterTestRegister -ErrorAction SilentlyContinue
        }

    Context "Check return type of Get-EventSubscriber" {
	
        It "Should return System.Management.Automation.PSEventSubscriber as return type of New-Event" {
	    $pesterobject = (New-Object System.Collections.ObjectModel.ObservableCollection[object])
	    Register-ObjectEvent -InputObject $pesterobject -EventName CollectionChanged -SourceIdentifier PesterTestRegister
	    (Get-EventSubscriber).GetType() | Should Be System.Management.Automation.PSEventSubscriber
	}
    }

    Context "Check Get-EventSubscriber can validly register events"{
	It "Should return source identifier of PesterTimer " {
	    $pesterobject = (New-Object System.Collections.ObjectModel.ObservableCollection[object])
	    Register-ObjectEvent -InputObject $pesterobject -EventName CollectionChanged -SourceIdentifier PesterTestRegister
	    (Get-EventSubscriber -SourceIdentifier PesterTestRegister).SourceIdentifier | Should Be "PesterTestRegister"
	}

        It "Should return an integer greater than 0 for the SubscriptionId" {
            $pesterobject = (New-Object System.Collections.ObjectModel.ObservableCollection[object])
	    Register-ObjectEvent -InputObject $pesterobject -EventName CollectionChanged -SourceIdentifier PesterTestRegister
	    (Get-EventSubscriber -SourceIdentifier PesterTestRegister).SubscriptionId | Should BeGreaterThan 0

	}
    }
}

{'fraction_non_alphanumeric': 0.07026348808030113, 'fraction_numerical': 0.0012547051442910915, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4255785', 'n_tokens_mistral': 414, 'n_tokens_neox': 398, 'n_words': 97}