Ejemplo n.º 1
0
        public void CompareInEqaulityFalse_ReturnsFalse()
        {
            var fake1 = ExerciseSet.FakeFactory();
            var fake2 = ExerciseSet.FakeFactory();

            Assert.That((fake1 != fake2), Is.False);
        }
Ejemplo n.º 2
0
        public void CompareObjectEquals_ReturnsTrue()
        {
            var fake1 = ExerciseSet.FakeFactory();
            var fake2 = ExerciseSet.FakeFactory();

            Assert.That(fake1.Equals(fake2), Is.True);
        }
Ejemplo n.º 3
0
        public void CompareObjectEqualityFalse_ReturnsFalse()
        {
            var fake1 = ExerciseSet.FakeFactory();
            var fake2 = ExerciseSet.FakeFactory();

            fake2.Repetitions = fake1.Repetitions + 1;
            Assert.That(fake1.Equals(fake2), Is.False);
        }
Ejemplo n.º 4
0
        public void CompareEquality_ReturnsTrue()
        {
            var fake1 = ExerciseSet.FakeFactory();
            var fake2 = ExerciseSet.FakeFactory();

            Assert.That(fake1, Is.EqualTo(fake2));
            Assert.That((fake1 == fake2), Is.True);
        }
Ejemplo n.º 5
0
        public void CompareInequality_ReturnsTrue()
        {
            var fake1 = ExerciseSet.FakeFactory();
            var fake2 = ExerciseSet.FakeFactory();

            fake2.Repetitions = fake1.Repetitions + 1; // Make fake 2 different.

            Assert.That(fake1 != fake2, Is.True);
        }
Ejemplo n.º 6
0
        public void GetTotalRepsForDay()
        {
            var plan = new DiscreteExercisePlan(true);

            Assert.That(plan.GetTotalRepsForDay(DateTime.Parse("01/01/2000")), Is.EqualTo(50));

            plan.SetsOfExercise.Add(ExerciseSet.FakeFactory());
            Assert.That(plan.GetTotalRepsForDay(DateTime.Parse("01/01/2000")), Is.EqualTo(55));
        }
Ejemplo n.º 7
0
        public void GetSetsForDay_Returns2()
        {
            var plan = new DiscreteExercisePlan(true);

            plan.SetsOfExercise.Add(ExerciseSet.FakeFactory());

            var list = plan.GetSetsForDay(DateTime.Parse("01/01/2000"));

            Assert.That(list.Count, Is.EqualTo(2));
        }