C# Class System.IO.IsolatedStorage.TestHelper

Show file Open project: dotnet/corefx

Public Methods

Method Description
CreateTestFile ( this isf, string fileName, string content = null ) : void

Simple wrapper to create the given file (and close the handle)

GetIdentityRootDirectory ( this isf ) : string

The actual root of the store (housekeeping files are kept here in NetFX)

GetUserRootDirectory ( this isf ) : string

Where the user's files go

IsTimeCloseToNow ( DateTimeOffset time ) : bool

Returns true if the given time is within a minute of the current time

ReadAllText ( this stream ) : string
ReadAllText ( this isf, string fileName ) : string
WipeStores ( ) : void
WriteAllText ( this stream, string content ) : void
WriteAllText ( this isf, string fileName, string content ) : void

Private Methods

Method Description
TestHelper ( ) : System.Collections.Generic

Method Details

CreateTestFile() public static method

Simple wrapper to create the given file (and close the handle)
public static CreateTestFile ( this isf, string fileName, string content = null ) : void
isf this
fileName string
content string
return void

GetIdentityRootDirectory() public static method

The actual root of the store (housekeeping files are kept here in NetFX)
public static GetIdentityRootDirectory ( this isf ) : string
isf this
return string

GetUserRootDirectory() public static method

Where the user's files go
public static GetUserRootDirectory ( this isf ) : string
isf this
return string

IsTimeCloseToNow() public static method

Returns true if the given time is within a minute of the current time
public static IsTimeCloseToNow ( DateTimeOffset time ) : bool
time DateTimeOffset
return bool

ReadAllText() public static method

public static ReadAllText ( this stream ) : string
stream this
return string

ReadAllText() public static method

public static ReadAllText ( this isf, string fileName ) : string
isf this
fileName string
return string

WipeStores() public static method

public static WipeStores ( ) : void
return void

WriteAllText() public static method

public static WriteAllText ( this stream, string content ) : void
stream this
content string
return void

WriteAllText() public static method

public static WriteAllText ( this isf, string fileName, string content ) : void
isf this
fileName string
content string
return void