public void TestGetDiscriminantShouldThrowNoSquareEquation() { UsualDiscriminantStrategy strategy = new UsualDiscriminantStrategy(); Double result = strategy.GetDiscriminant(0, 2, 1); }
public void TestGetDiscriminantShouldReturnValue() { UsualDiscriminantStrategy strategy = new UsualDiscriminantStrategy(); Double result = strategy.GetDiscriminant(1, 2, 1); Assert.AreEqual(0, result); }