check point
This commit is contained in:
1
VisionBuilder.UI.Tests/MSTestSettings.cs
Normal file
1
VisionBuilder.UI.Tests/MSTestSettings.cs
Normal file
@@ -0,0 +1 @@
|
||||
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
|
||||
19
VisionBuilder.UI.Tests/VMTests.cs
Normal file
19
VisionBuilder.UI.Tests/VMTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using VisionBuilder.UI.Common;
|
||||
|
||||
namespace VisionBuilder.UI.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public sealed class VMTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
// Arrange
|
||||
var vm = new ExampleMainViewModel();
|
||||
// Act
|
||||
vm.IncrementCommand.Execute(null);
|
||||
// Assert
|
||||
Assert.AreEqual(1, vm.Counter);
|
||||
}
|
||||
}
|
||||
}
|
||||
23
VisionBuilder.UI.Tests/VisionBuilder.UI.Tests.csproj
Normal file
23
VisionBuilder.UI.Tests/VisionBuilder.UI.Tests.csproj
Normal file
@@ -0,0 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="MSTest" Version="3.6.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\VisionBuilder.UI.Common\VisionBuilder.UI.Common.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user