private static bool IsIn(EnergyValue a, EnergyValue b, double energyEv) { var r = new Region(a.Energy_eV, b.Energy_eV); return r.IsIn(energyEv); }
public void IsInは領域内に入っているかどうかを返す(double value, bool expected) { var r = new Region(0, 10); Assert.AreEqual(expected, r.IsIn(value)); }