diff --git a/README.md b/README.md
index 16faa5c..04e6471 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# SystemWrapper
-![NuGet version](https://img.shields.io/nuget/v/SystemWrapper.Interfaces.svg) ![branch: master](http://img.shields.io/badge/branch-master-blue.svg?style=flat) [![Build status: master](https://ci.appveyor.com/api/projects/status/1126fol0d56a8my8/branch/master?svg=true)](https://ci.appveyor.com/project/jozefizso/systemwrapper/branch/master) ° ![branch: master](http://img.shields.io/badge/branch-develop-blue.svg?style=flat) [![Build status: develop](https://ci.appveyor.com/api/projects/status/1126fol0d56a8my8/branch/develop?svg=true)](https://ci.appveyor.com/project/jozefizso/systemwrapper/branch/develop)
+[![NuGet version](https://img.shields.io/nuget/v/SystemWrapper.Interfaces.svg)](https://www.nuget.org/packages/SystemWrapper.Wrappers/)
+![branch: master](http://img.shields.io/badge/branch-master-blue.svg?style=flat) [![Build status: master](https://ci.appveyor.com/api/projects/status/1126fol0d56a8my8/branch/master?svg=true)](https://ci.appveyor.com/project/jozefizso/systemwrapper/branch/master) ° ![branch: master](http://img.shields.io/badge/branch-develop-blue.svg?style=flat) [![Build status: develop](https://ci.appveyor.com/api/projects/status/1126fol0d56a8my8/branch/develop?svg=true)](https://ci.appveyor.com/project/jozefizso/systemwrapper/branch/develop)
> **SystemWrapper** is .NET library for easier testing of system APIs.
diff --git a/SystemInterface/IDateTime.cs b/SystemInterface/IDateTime.cs
index 7ac43a1..7011d9c 100644
--- a/SystemInterface/IDateTime.cs
+++ b/SystemInterface/IDateTime.cs
@@ -6,7 +6,7 @@ namespace SystemInterface
using System.Diagnostics.CodeAnalysis;
///
- /// Wrapper for class.
+ /// Wrapper for class.
///
public interface IDateTime
{
diff --git a/SystemWrapper.Tests/IO/Compression/ZipFileWrapTests.cs b/SystemWrapper.Tests/IO/Compression/ZipFileWrapTests.cs
index 3960759..ffc031f 100644
--- a/SystemWrapper.Tests/IO/Compression/ZipFileWrapTests.cs
+++ b/SystemWrapper.Tests/IO/Compression/ZipFileWrapTests.cs
@@ -1,4 +1,5 @@
-using System.IO;
+using System.IO;
+using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
@@ -135,14 +136,40 @@ namespace SystemWrapper.Tests.IO.Compression
}
[Test]
- public void Open_WithEncoding_Creates_ZipArchiveWrap()
+ public void Open_WithUTF8Encoding_Creates_OpensZipWithCorrectEncoding()
{
+ var assembly = Assembly.GetAssembly(typeof(ZipFileWrapTests));
+ var testFilePath = assembly.CodeBase.Substring(8); //remove the "file://" from the front
+ testFilePath = Path.GetDirectoryName(testFilePath) + @"\TestData\Encoding_UTF8.zip";
+
var instance = new ZipFileWrap();
- instance.CreateFromDirectory(ArchiveDirectory, ArchiveFileName);
- using (var archive = instance.Open(ArchiveFileName, System.IO.Compression.ZipArchiveMode.Read, Encoding.UTF8))
+ using (var archive = instance.Open(testFilePath, System.IO.Compression.ZipArchiveMode.Read, Encoding.UTF8))
{
Assert.IsNotNull(archive);
Assert.IsInstanceOf(archive);
+
+ var entry = archive.Entries.First();
+ Assert.AreEqual("text-ľščťžýáíé.txt", entry.Name);
+ }
+ }
+
+ [Test]
+ public void Open_WithWindows1250Encoding_OpensZipWithCorrectEncoding()
+ {
+ var assembly = Assembly.GetAssembly(typeof(ZipFileWrapTests));
+ var testFilePath = assembly.CodeBase.Substring(8); //remove the "file://" from the front
+ testFilePath = Path.GetDirectoryName(testFilePath) + @"\TestData\Encoding_Windows1250.zip";
+
+ var instance = new ZipFileWrap();
+
+ var encodingWindows1250 = Encoding.GetEncoding(1250);
+ using (var archive = instance.Open(testFilePath, System.IO.Compression.ZipArchiveMode.Read, encodingWindows1250))
+ {
+ Assert.IsNotNull(archive);
+ Assert.IsInstanceOf(archive);
+
+ var entry = archive.Entries.First();
+ Assert.AreEqual("text-ľščťžýáíé.txt", entry.Name);
}
}
@@ -158,4 +185,4 @@ namespace SystemWrapper.Tests.IO.Compression
}
}
}
-}
\ No newline at end of file
+}
diff --git a/SystemWrapper.Tests/SystemWrapper.Tests.csproj b/SystemWrapper.Tests/SystemWrapper.Tests.csproj
index 0d86362..1182f0a 100644
--- a/SystemWrapper.Tests/SystemWrapper.Tests.csproj
+++ b/SystemWrapper.Tests/SystemWrapper.Tests.csproj
@@ -118,6 +118,12 @@
+
+ PreserveNewest
+
+
+ PreserveNewest
+