UnitTest1.cs 422 B

123456789101112131415161718192021
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using exzem1;
  3. namespace TestProject1
  4. {
  5. [TestClass]
  6. public class UnitTest1
  7. {
  8. [TestMethod]
  9. public void TestMethod1()
  10. {
  11. int a = 123;
  12. int b = 154;
  13. int except = 277;
  14. Program q = new Program();
  15. int act = q.resh(a, b);
  16. Assert.AreEqual(except, act);
  17. }
  18. }
  19. }