diff --git a/Creator/packages.config b/Creator/packages.config
index b0cfae7..70a616c 100644
--- a/Creator/packages.config
+++ b/Creator/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/Katteker.Test/Katteker.Test.csproj b/Katteker.Test/Katteker.Test.csproj
index 09478c9..1187ae2 100644
--- a/Katteker.Test/Katteker.Test.csproj
+++ b/Katteker.Test/Katteker.Test.csproj
@@ -1,6 +1,7 @@
-
+
+
Debug
AnyCPU
@@ -38,11 +39,8 @@
4
-
- ..\packages\MSTest.TestFramework.1.3.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll
-
-
- ..\packages\MSTest.TestFramework.1.3.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
+
+ ..\packages\NUnit.3.10.1\lib\net45\nunit.framework.dll
@@ -69,10 +67,9 @@
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+ Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".
-
-
+
+
-
\ No newline at end of file
diff --git a/Katteker.Test/KattekerLibTest.cs b/Katteker.Test/KattekerLibTest.cs
index fe6caa9..2743f3a 100644
--- a/Katteker.Test/KattekerLibTest.cs
+++ b/Katteker.Test/KattekerLibTest.cs
@@ -1,17 +1,17 @@
using System;
using System.IO;
using System.Reflection;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
+using NUnit.Framework;
namespace Katteker.Test
{
- [TestClass]
+ [TestFixture]
public class KattekerLibTest
{
private static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
private static readonly string ExampleFile = Path.Combine(BaseDir, "testdata", "Example.exe");
- [TestMethod]
+ [Test]
public void Sha1ChecksumOfFile()
{
var actual = Utility.ComputeFileHash(ExampleFile);
@@ -19,7 +19,7 @@ namespace Katteker.Test
Assert.AreEqual(expected, actual);
}
- [TestMethod]
+ [Test]
public void CheckIfStringIsWebUrl()
{
const string test1 = "http://TolleUrl.de/Test";
@@ -27,13 +27,13 @@ namespace Katteker.Test
const string test3 = "C:\\Test";
const string test4 = "furz";
- Assert.IsTrue(Utility.IsWebUrl(test1));
- Assert.IsTrue(Utility.IsWebUrl(test2));
- Assert.IsFalse(Utility.IsWebUrl(test3));
- Assert.ThrowsException(() => Utility.IsWebUrl(test4));
+ Assert.True(Utility.IsWebUrl(test1));
+ Assert.True(Utility.IsWebUrl(test2));
+ Assert.False(Utility.IsWebUrl(test3));
+ Assert.Throws(() => Utility.IsWebUrl(test4));
}
- [TestMethod]
+ [Test]
public void CheckRightAssemblyName()
{
const string expected = "Example";
@@ -41,12 +41,19 @@ namespace Katteker.Test
Assert.AreEqual(expected, actual);
}
- [TestMethod]
+ [Test]
public void CheckAssemblyVersionStuff()
{
var expected = new Semver.SemVersion(1, 0, 53);
var actual = VersionUtils.GetCurrentVersion(Assembly.LoadFile(ExampleFile));
Assert.AreEqual(expected, actual);
}
+
+ [Test]
+ public void TestGetLocalAppDataDirectory()
+ {
+ var expected = Utility.GetLocalAppDataDirectory();
+ Assert.IsTrue(expected.Contains("AppData\\Local"));
+ }
}
}
\ No newline at end of file
diff --git a/Katteker.Test/packages.config b/Katteker.Test/packages.config
index 6b79fc9..2c60fcf 100644
--- a/Katteker.Test/packages.config
+++ b/Katteker.Test/packages.config
@@ -1,5 +1,5 @@
-
-
+
+
\ No newline at end of file