|
@@ -7,6 +7,9 @@ namespace ModulTest
|
|
[TestClass]
|
|
[TestClass]
|
|
public class UnitTest
|
|
public class UnitTest
|
|
{
|
|
{
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Тест авторизации под успешным входом
|
|
|
|
+ /// </summary>
|
|
[TestMethod]
|
|
[TestMethod]
|
|
public void autorization_valid()
|
|
public void autorization_valid()
|
|
{
|
|
{
|
|
@@ -17,6 +20,9 @@ namespace ModulTest
|
|
string result = obj.autoRization(login, password);
|
|
string result = obj.autoRization(login, password);
|
|
Assert.AreEqual(res, result);
|
|
Assert.AreEqual(res, result);
|
|
}
|
|
}
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Тест авторизации при условии того, что не введен логин
|
|
|
|
+ /// </summary>
|
|
[TestMethod]
|
|
[TestMethod]
|
|
public void autorization_not_login()
|
|
public void autorization_not_login()
|
|
{
|
|
{
|
|
@@ -27,7 +33,9 @@ namespace ModulTest
|
|
string result = obj.autoRization(login, password);
|
|
string result = obj.autoRization(login, password);
|
|
Assert.AreEqual(res, result);
|
|
Assert.AreEqual(res, result);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Тест авторизации при условии того, что не введен пароль
|
|
|
|
+ /// </summary>
|
|
[TestMethod]
|
|
[TestMethod]
|
|
public void autorization_not_password()
|
|
public void autorization_not_password()
|
|
{
|
|
{
|
|
@@ -38,7 +46,9 @@ namespace ModulTest
|
|
string result = obj.autoRization(login, password);
|
|
string result = obj.autoRization(login, password);
|
|
Assert.AreEqual(res, result);
|
|
Assert.AreEqual(res, result);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Тест авторизации при условии того, что логин или пароль неверно введен
|
|
|
|
+ /// </summary>
|
|
[TestMethod]
|
|
[TestMethod]
|
|
public void autorization_no_valid()
|
|
public void autorization_no_valid()
|
|
{
|
|
{
|