mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Moved application code to the Application layer
Imported Win10 project Code cleanup WIP - Use common UWP services for Win8.1 and Win10
This commit is contained in:
17
ModernKeePass.ViewModelTest/AboutViewModelTests.cs
Normal file
17
ModernKeePass.ViewModelTest/AboutViewModelTests.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using ModernKeePass.ViewModels;
|
||||
using NUnit.Framework;
|
||||
using Windows.ApplicationModel;
|
||||
|
||||
namespace ModernKeePassApp.ViewModelTest
|
||||
{
|
||||
[TestFixture]
|
||||
public class AboutViewModelTests
|
||||
{
|
||||
[Test]
|
||||
public void Should_Display_App_Version()
|
||||
{
|
||||
var aboutVm = new AboutViewModel(Package.Current);
|
||||
Assert.AreEqual("1.0", aboutVm.Version);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="nunit" Version="3.11.0" />
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ModernKeePass10\Win10App.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Windows">
|
||||
<HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user