예제 #1
0
        public static void MassToMzNegativeCharge()
        {
            ObjectWithMass1000 a  = new ObjectWithMass1000();
            double             mz = a.ToMz(-2);

            Assert.AreEqual(498.99272353312102, mz);
        }
예제 #2
0
        public static void MassToMzPositiveCharge()
        {
            ObjectWithMass1000 a  = new ObjectWithMass1000();
            double             mz = a.ToMz(2);

            Assert.AreEqual(501.00727646687898, mz);
        }
예제 #3
0
        public static void MassToMzPositiveCharge_plus3()
        {
            ObjectWithMass1000 a  = new ObjectWithMass1000();
            double             mz = (double)ClassExtensions.RoundedDouble(a.ToMz(3), 9);

            Assert.AreEqual(334.340609800, mz);
        }
예제 #4
0
        public static void MassToMzToMass()
        {
            ObjectWithMass1000 a  = new ObjectWithMass1000();
            double             mz = a.ToMz(2).ToMass(2);

            Assert.AreEqual(1000, mz);
        }