Same as, with writing classes - start with the simple cases, then add requirement (aka tests) and implementation (aka production code) case by case:
[Test]
public void EnsureThat_IsLeapYearIfDecimalMultipleOf4() {...}
[Test]
public void EnsureThat_IsNOTLeapYearIfDecimalMultipleOf100 {...}
[Tes...