public void TestEachFuncIsNotNull() { Vec2 start = new Vec2(2, 3); Vec2 result; Assert.Throws <ArgumentNullException>(() => result = start.Each(null)); }
public void TestEach() { Vec2 start = new Vec2(2, 3); Vec2 result = start.Each((coord) => coord + 2); Assert.AreEqual(new Vec2(2, 3), start); Assert.AreEqual(new Vec2(4, 5), result); }