Ejemplo n.º 1
0
        public void Dividing_lots_of_numbers()
        {
            PipetteDevice biomek = Setup_Test.SetupDevice(_cap);

            int[] result = biomek.CalculateMoveset(_vol);
            Assert.IsTrue((result.Max() - result.Min()) <= 1);
        }
Ejemplo n.º 2
0
        public void Dividing_one_and_one()
        {
            PipetteDevice biomek = Setup_Test.SetupDevice(1);

            int[] result   = biomek.CalculateMoveset(1);
            int[] expected = new int[] { 1 };
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 3
0
        public void Dividing_small_and_larger()
        {
            PipetteDevice biomek = Setup_Test.SetupDevice(40);

            int[] result   = biomek.CalculateMoveset(10);
            int[] expected = new int[] { 10 };
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 4
0
        public void Dividing_negative_and_positive()
        {
            PipetteDevice biomek = Setup_Test.SetupDevice(40);

            int[] result   = biomek.CalculateMoveset(-10);
            int[] expected = new int[] { 0 };
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 5
0
        public void Dividing_positive_and_nonmultiple()
        {
            PipetteDevice biomek = Setup_Test.SetupDevice(40);

            int[] result   = biomek.CalculateMoveset(100);
            int[] expected = new int[] { 33, 33, 34 };
            Assert.AreEqual(expected, result);
        }