UnitTest1.cs 525 B

12345678910111213141516171819202122
  1. using ClassLibrary4;
  2. namespace TestProject1
  3. {
  4. [TestClass]
  5. public class UnitTest1
  6. {
  7. [TestMethod]
  8. public void TestMethod1()
  9. {
  10. proverkaChisla class1 = new proverkaChisla();
  11. int a = proverkaChisla.z1(3);
  12. Assert.AreEqual(1, a);
  13. }
  14. [TestMethod]
  15. public void TestMethod2()
  16. {
  17. proverkaChisla class1 = new proverkaChisla();
  18. int a = proverkaChisla.z1(3);
  19. Assert.AreNotEqual(1, a);
  20. }
  21. }
  22. }