Created
June 11, 2014 12:43
-
-
Save renestein/75fd796575d1633cd7cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
[ExpectedException(typeof (ArgumentOutOfRangeException))] | |
public void Ctor_When_Number_Of_Threads_Is_Zero_Then_Throws_ArgumentOutOfRangeException() | |
{ | |
var threadPool = new IoServiceThreadPoolScheduler(m_ioService, 0); | |
} | |
[TestMethod] | |
[ExpectedException(typeof (ArgumentOutOfRangeException))] | |
public void Ctor_When_Number_Of_Threads_Is_Negative_Then_Throws_ArgumentOutOfRangeException() | |
{ | |
var threadPool = new IoServiceThreadPoolScheduler(m_ioService, -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment