C# 클래스 AWSSDK.UnitTests.OptimisticLockedFileTest

파일 보기 프로젝트 열기: aws/aws-sdk-net

공개 메소드들

메소드 설명
FileLockedByThisProcess ( ) : void

This test needs to be run manually since it relies on a race condition and a manual code change. It's been run as part of development but it won't be run in the normal build process. This test makes sure that the OptimisticLockedTextFile.Persist() method locks the file properly while it's being written. To run this test: 1. temporarily add System.Threading.Thread.Sleep(5000); to OptimisticLockedTextFile.Persist() just after the file is opened 2. uncomment the [TestMethod] attribute on this method 3. run the test 4. REVERT YOUR CHANGES FROM STEPS 1 AND 2

비공개 메소드들

메소드 설명
FileChanged ( ) : void
FileLockedByAnotherProcess ( ) : void
PersistAddsLineEnding ( ) : void
PersistEmpty ( ) : void
PersistLine ( ) : void
PersistNewFile ( ) : void
PersistTwice ( ) : void
ProperTruncation ( ) : void
ReadLine ( ) : void
ReadMixedNewLines1 ( ) : void
ReadMixedNewLines2 ( ) : void
ReadMixedlines1 ( ) : void
ReadMixedlines2 ( ) : void
ReadMixedlines3 ( ) : void
ReadMixedlines4 ( ) : void
ReadUnixLine ( ) : void
ReadUnixNewLine ( ) : void
ReadWindowsLine ( ) : void
ReadWindowsNewLine ( ) : void

메소드 상세

FileLockedByThisProcess() 공개 메소드

This test needs to be run manually since it relies on a race condition and a manual code change. It's been run as part of development but it won't be run in the normal build process. This test makes sure that the OptimisticLockedTextFile.Persist() method locks the file properly while it's being written. To run this test: 1. temporarily add System.Threading.Thread.Sleep(5000); to OptimisticLockedTextFile.Persist() just after the file is opened 2. uncomment the [TestMethod] attribute on this method 3. run the test 4. REVERT YOUR CHANGES FROM STEPS 1 AND 2
public FileLockedByThisProcess ( ) : void
리턴 void