Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using NUnit.Framework;
- namespace Sample {
- [TestFixture]
- public class EnumerableTest {
- [Test]
- public void _2か3どちらかの倍数() {
- var count = Enumerable.Range(1, 10)
- .CountAny(
- i => i % 2 == 0,
- i => i % 3 == 0
- );
- Assert.That(count, Is.EqualTo(7));
- }
- }
- }
Add Comment
Please, Sign In to add comment