Corrected some tests

Minor code refactor
Main page now correctly shows save page even when opening a DB from Explorer
This commit is contained in:
2018-09-12 12:58:32 +02:00
parent 38e2d1ac51
commit d341535d60
11 changed files with 50 additions and 56 deletions

View File

@@ -23,7 +23,7 @@ namespace ModernKeePassLib.Test.Keys
"\t\t<Data>";
private const string ExpectedFileEnd = "\t</Key>\r\n" +
"</KeyFile>\r\n";
"</KeyFile>";
[TestMethod]
public void TestConstruct()
@@ -70,7 +70,7 @@ namespace ModernKeePassLib.Test.Keys
{
var fileContents = FileIO.ReadTextAsync(file).GetAwaiter().GetResult();
Assert.AreEqual(fileContents.Length, 187);
Assert.AreEqual(185, fileContents.Length);
Assert.IsTrue(fileContents.StartsWith(ExpectedFileStart));
Assert.IsTrue(fileContents.EndsWith(ExpectedFileEnd));
}