UnitTest1.cs 428 B

123456789101112131415161718192021
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using PM_02_Polkovnikova;
  4. namespace ModulTest
  5. {
  6. [TestClass]
  7. public class UnitTest1
  8. {
  9. Program program = new Program();
  10. [TestMethod]
  11. public void Sum8_and10_return18()
  12. {
  13. int x = 8;
  14. int y = 10;
  15. int itog = 18;
  16. Assert.AreEqual(program.Sum(x, y), itog);
  17. }
  18. }
  19. }