FakeFile.

SetLastWriteTimeUtc(DateTime) Method

Summary

Sets the date and time, in Coordinated Universal Time (UTC), that the specified file or directory was last written to.
Namespace
Cake.Testing
Containing Type
FakeFile

Syntax

public IFile SetLastWriteTimeUtc(DateTime lastWriteTimeUtc)

Parameters

Name Type Description
lastWriteTimeUtc DateTime A DateTime containing the value to set for the last access date and time of path. This value is expressed in local time.

Return Value

Type Description
IFile A IFile instance representing the specified path.