public static void MassToMzNegativeCharge() { ObjectWithMass1000 a = new ObjectWithMass1000(); double mz = a.ToMz(-2); Assert.AreEqual(498.99272353312102, mz); }
public static void MassToMzPositiveCharge() { ObjectWithMass1000 a = new ObjectWithMass1000(); double mz = a.ToMz(2); Assert.AreEqual(501.00727646687898, mz); }
public static void MassToMzPositiveCharge_plus3() { ObjectWithMass1000 a = new ObjectWithMass1000(); double mz = (double)ClassExtensions.RoundedDouble(a.ToMz(3), 9); Assert.AreEqual(334.340609800, mz); }
public static void MassToMzToMass() { ObjectWithMass1000 a = new ObjectWithMass1000(); double mz = a.ToMz(2).ToMass(2); Assert.AreEqual(1000, mz); }