Created
April 13, 2016 10:13
-
-
Save kawa-xxx/96ecefde87f0e1f84c7d21066ccf5c26 to your computer and use it in GitHub Desktop.
LinqPad UnitTest サンプル
This file contains 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
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