public void ToDir4(Dir8 dir, Dir4 expected, bool exception = false) { if (exception) { Assert.Throws <ArgumentOutOfRangeException>(() => { dir.ToDir4(); }); } else { Assert.That(dir.ToDir4(), Is.EqualTo(expected)); } }
public void ToDir4(Dir8 dir, Dir4 expected, bool exception = false) { if (exception) { Assert.Throws <ArgumentOutOfRangeException>(() => { dir.ToDir4(); }); } else { Assert.That(dir.ToDir4(), Is.EqualTo(expected)); } }