Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renestein/75fd796575d1633cd7cc to your computer and use it in GitHub Desktop.
Save renestein/75fd796575d1633cd7cc to your computer and use it in GitHub Desktop.
[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