UnitTest1.cs 350 B

1234567891011121314151617181920
  1. using tes;
  2. namespace TestProject2
  3. {
  4. [TestClass]
  5. public class UnitTest1
  6. {
  7. [TestMethod]
  8. public void Sum_AreNotEquals()
  9. {
  10. int x = 20;
  11. int y = 20;
  12. double except = 400;
  13. double actual = Class1.sum(x, y);
  14. Assert.AreNotEqual(except, actual);
  15. }
  16. }
  17. }