-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnitTest1.cs
More file actions
39 lines (37 loc) · 1.34 KB
/
UnitTest1.cs
File metadata and controls
39 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Author: Nikolay Dvurechensky
* Site: https://dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 27 апреля 2026 09:40:39
* Version: 1.0.254
*/
namespace Base.UserLibrary.Tests
{
[TestClass]
public class UnitTest1
{
private TestContext testContextInstance;
public TestContext TestContextInstance
{
get { return testContextInstance; }
set { testContextInstance = value; }
}
private UserManagerMsTest manager = new UserManagerMsTest();
/// <summary>
/// DataSource - определение источника данных
/// 1 параметр - имя провайдера
/// 2 параметр - строка подключения или путь к файлу
/// 3 параметр - имя таблицы или элемента XML
/// 4 параметр - как происходит доступ к записям из источника данных
/// </summary>
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML",
"TestData.xml",
"User",
DataAccessMethod.Sequential)]
[TestMethod]
public void AddDataTest()
{
string userId = Convert.ToString(TestContextInstance.DataRow["Row1"]);
}
}
}