Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
System
Tests
EnvironmentTests
UserName_Valid
System.Tests.EnvironmentTests.UserName_Valid C# (CSharp) Метод
Документация по классу EnvironmentTests
Показать файл
Открыть проект
UserName_Valid()
приватный
Метод
private
UserName_Valid
( ) :
void
Результат
void
public void UserName_Valid() { Assert.False(string.IsNullOrWhiteSpace(Environment.UserName)); }
EnvironmentTests
CurrentDirectory_Empty_Path_Throws_ArgumentException
CurrentDirectory_Null_Path_Throws_ArgumentNullException
CurrentDirectory_SetToNonExistentDirectory_ThrowsDirectoryNotFoundException
CurrentDirectory_SetToValidOtherDirectory
CurrentManagedThreadId_DifferentForActiveThreads
CurrentManagedThreadId_Idempotent
FailFast_ExpectFailureExitCode
GetFolderPath_OSX_NonEmptyFolderPaths
GetFolderPath_Unix_NonEmptyFolderPaths
GetFolderPath_Unix_PersonalIsHomeAndUserProfile
GetFolderPath_Windows
GetLogicalDrives
GetLogicalDrives_Unix_AtLeastOneIsRoot
GetLogicalDrives_Windows_MatchesExpectedLetters
GetSystemDirectory
HasShutdownStarted_FalseWhileExecuting
Is64BitOperatingSystem_TrueIf64BitProcess
Is64BitOperatingSystem_Unix_TrueIff64BitProcess
Is64BitProcess_MatchesIntPtrSize
OSVersion_Idempotent
OSVersion_MatchesPlatform
OSVersion_ValidVersion
SHGetFolderPathW
SystemPageSize_Valid
UserDomainName_Unix_MatchesMachineName
UserDomainName_Valid
UserInteractive_True
UserName_Valid
Version_MatchesFixedVersion
WorkingSet_Valid