Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.