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