Beispiel #1
0
        public void IsQuadraticSolvable_Answer()
        {
            //  arrange
            float a = 5;
            float b = 3;
            float c = 7;

            //  act
            bool notSolvable = PMath.IsQuadraticSolvable(a, b, c);
            bool yesSolvable = PMath.IsQuadraticSolvable(a, b * 100, c);

            //  assert
            Assert.IsFalse(notSolvable);
            Assert.IsTrue(yesSolvable);
        }