https://github.com/exortek/csharp-unit-test-classlvl
https://github.com/exortek/csharp-unit-test-classlvl
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/exortek/csharp-unit-test-classlvl
- Owner: ExorTek
- Created: 2021-08-13T08:50:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T12:42:02.000Z (almost 5 years ago)
- Last Synced: 2026-03-01T11:00:31.901Z (4 months ago)
- Language: C#
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unit Test
## Class Level
```csharp
[TestClass]
public class CartTest
{
[ClassInitialize]
public static void ClassInitialize(TestContext context)
{
//Arrange
}
[ClassCleanup]
public static void ClassCleanup()
{
//ClearMeth
}
[TestMethod]
public void AddMethod()
{
//Act
//Assert
}
```

- [Documentation 1](https://docs.microsoft.com/en-us/visualstudio/test/unit-test-basics?view=vs-2019)
- [Documentation 2](https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/ms245248(v=vs.120))