mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
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:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user