12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using Blanki_ekzamena.Dobavlenie;
- namespace Test
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void Proverka_na_password()
- {
- string pass = "hi54ew52";
- bool ex = true;
- Sotrudniki_plus tm = new Sotrudniki_plus();
- bool act = tm.format(pass);
- Assert.AreEqual(ex, act);
- }
- [TestMethod]
- public void Proverka_na_pystaty()
- {
- string log = "";
- string pass = "";
- string fam = "";
- string im = "";
- string dol = "";
- bool ex = false;
- Sotrudniki_plus tm = new Sotrudniki_plus();
- bool act = tm.isFormVaid(log, pass,fam,im,dol);
- Assert.AreEqual(ex, act);
- }
- [TestMethod]
- public void Proverka_na_porol()
- {
- string log = "naki";
- string pass = "951230";
- bool ex = false;
- Sotrudniki_plus tm = new Sotrudniki_plus();
- bool act = tm.Proverka_log_and_parol(log, pass);
- Assert.AreEqual(ex, act);
- }
- [TestMethod]
- public void Proverka_na_polzovatel()
- {
- string log = "naki";
- string pass = "951230";
- string fam = "Трифонова";
- string im = "Анастасия";
- string oth = "Романовна";
- string dol = "Администратор";
- bool ex = false;
- Sotrudniki_plus tm = new Sotrudniki_plus();
- bool act = tm.Proverka(log, pass,fam,im,oth,dol);
- Assert.AreEqual(ex, act);
- }
- }
- }
|