.


:




:

































 

 

 

 





, . unit- . Unit- , . . , .

Unit- :

) unit-;

) unit- .

(, ). unit-.

, , : __.Tests. , . , , . . : __Test. : __Test.

unit- ( AAA):

1) Arange -

2) Act - ()

3) Assert -

Visual Studio 2015 , ( Test ) (. 1).

 

. 1

Unit Test Project (. 2).


. 2

 

Repository 3.

. 3

Test Explorer (. 4).


. 4 Test Explorer

 

DomainModel. , . , CRUD (create (), read (), update (), delete ()). , .

. .

1.

(Get) Arrange .
Act .
Assert . .
(Add) Arrange .
Act . .
Assert . .
(Update) Arrange . . .
Act . . .
Assert . , .
(Delete) Arrange . . .
Act .
Assert .

1.

 

. 5

:

- ( , );

- , : xml- , json- .

- UML . -, .

 

:

 

0

.

1

.

2

.

3

.

4

.

5

.

6

.

7

8

.

9

.

 

:

1.

2.

a. ;

b. .

3.

4.

 

:

1. , ?

2. Assert ?

3. ( ) Assert. . ?

 

1. - // MSDN URL: https://msdn.microsoft.com/ru-ru/magazine/dd419654.aspx ( : 09.05.2016).

2. Visual Studio // MSDN URL: https://msdn.microsoft.com/ru-ru/library/b142f8e7.aspx ( : 09.05.2016).

3. // MSDN URL: https://msdn.microsoft.com/ru-ru/library/dd409436.aspx ( : 09.05.2016).

4. interface ( C#) // MSDN URL: https://msdn.microsoft.com/ru-ru/library/87d83y5b.aspx ( : 09.05.2016). . // MSDN URL: https://msdn.microsoft.com/ru-ru/library/87d83y5b.aspx ( : 09.05.2016).

5. 90+ e-books on popular technologies for free // Syncfusion URL: https://www.syncfusion.com/resources/techportal/ebooks ( : 09.05.2016). ( )

 






:


: 2016-12-31; !; : 286 |


:

:

: , .
==> ...

1686 - | 1647 -


© 2015-2024 lektsii.org - -

: 0.016 .