Skip to content

Instantly share code, notes, and snippets.

@kawa-xxx
Created April 13, 2016 10:13
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 kawa-xxx/96ecefde87f0e1f84c7d21066ccf5c26 to your computer and use it in GitHub Desktop.
Save kawa-xxx/96ecefde87f0e1f84c7d21066ccf5c26 to your computer and use it in GitHub Desktop.
LinqPad UnitTest サンプル
void Main(string[] args)
{
new AutoRun().Execute(new[]{"--noheader","--noresult"});
}
[TestFixture]
public class TestFixture
{
int GetPageNumber(int limit, int offset)
{
return (offset + limit) / limit;
}
[Test]
public void SimpleTest()
{
Assert.AreEqual(1, GetPageNumber(10, 0));
Assert.AreEqual(1, GetPageNumber(1, 0));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment