UnitTest1.cs 550 B

1234567891011121314151617181920212223242526
  1. using Examen31P_LebedevaAF;
  2. namespace TestProject2
  3. {
  4. [TestClass]
  5. public class UnitTest1
  6. {
  7. [TestMethod]
  8. public void TestMethod1()
  9. {
  10. int expept = 4000;
  11. Brak b = new Brak();
  12. int actual = b.Dlina();
  13. Assert.AreEqual(expept, actual);
  14. }
  15. [TestMethod]
  16. public void TestMethod2()
  17. {
  18. int expept = 40;
  19. Brak b = new Brak();
  20. int actual = b.Dlina();
  21. Assert.AreEqual(expept, actual);
  22. }
  23. }
  24. }