using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using Avokado; namespace UnitTests { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { authForm from = new authForm(); string login = ""; string password = ""; string expected = "Поле ЛОГИН пустое!"; string act = from.auth(login, password); Assert.AreEqual(expected, act); } [TestMethod] public void TestMethod2() { authForm from = new authForm(); string login = "nagios"; string password = "log"; string expected = "Такого пользователя нет в базе!"; string act = from.auth(login, password); Assert.AreEqual(expected, act); } [TestMethod] public void TestMethod3() { authForm from = new authForm(); string login = "asd"; string password = "asd"; string expected = "Авторизация прошла успешно"; string act = from.auth(login, password); Assert.AreEqual(expected, act); } } }