UnitTest1.cs 764 B

12345678910111213141516171819202122232425262728293031
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using System;
  3. using ConsoleApp27;
  4. namespace UnitTestProject1
  5. {
  6. [TestClass]
  7. public class UnitTest1
  8. {
  9. [TestMethod]
  10. public void TestMethod1()
  11. {
  12. int a = 3;
  13. int b = 5;
  14. int expected = 15;
  15. Program program = new Program();
  16. int actual = program.umnojeniya(a, b);
  17. Assert.AreEqual(expected, actual);
  18. }
  19. [TestMethod]
  20. public void TestMethod2()
  21. {
  22. int a = 3;
  23. int b = 5;
  24. int expected = 15;
  25. Program program = new Program();
  26. int actual = program.slojeniya(a, b);
  27. Assert.AreEqual(expected, actual);
  28. }
  29. }
  30. }