public void Simplify_can_correctly_create_a_vulgar_fraction()
        {
            var sut        = new FractionSimplifier();
            var fraction   = new Fraction(1, 4, 8);
            var simplified = sut.Simplify(fraction, true);

            Assert.That((simplified.AbsoluteInteger, simplified.Numerator, simplified.Denominator), Is.EqualTo((0, 3, 2)));
        }
        public void Simplify_does_not_change_an_already_simplified_fraction()
        {
            var sut        = new FractionSimplifier();
            var fraction   = new Fraction(3, 4);
            var simplified = sut.Simplify(fraction);

            Assert.That((simplified.Numerator, simplified.Denominator), Is.EqualTo((3, 4)));
        }
        public void Simplify_can_correctly_simplify_a_negative_fraction()
        {
            var sut        = new FractionSimplifier();
            var fraction   = new Fraction(-6, 8);
            var simplified = sut.Simplify(fraction);

            Assert.That((simplified.Numerator, simplified.Denominator, simplified.IsNegative), Is.EqualTo((3, 4, true)));
        }
        public void Simplify_can_correctly_simplify_a_small_fraction()
        {
            var sut        = new FractionSimplifier();
            var fraction   = new Fraction(6, 8);
            var simplified = sut.Simplify(fraction);

            Assert.That((simplified.Numerator, simplified.Denominator), Is.EqualTo((3, 4)));
        }