Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ public async Task DeletingFilesThatRedefineKeysWithReload(bool optional)
_fileSystem.DeleteFile(_iniFile);

await WaitForChange(
() => config["Key"] == "JsonValue1",
() => config["Key"] == "JsonValue1" && token.HasChanged,
"Notification failed for deleting ini file.");

Assert.Equal("JsonValue1", config["Key"]);
Expand All @@ -850,7 +850,7 @@ await WaitForChange(
_fileSystem.DeleteFile(_jsonFile);

await WaitForChange(
() => config["Key"] == "XmlValue1",
() => config["Key"] == "XmlValue1" && token.HasChanged,
"Notification failed for deleting JSON file.");

Assert.Equal("XmlValue1", config["Key"]);
Expand All @@ -860,7 +860,7 @@ await WaitForChange(
_fileSystem.DeleteFile(_xmlFile);

await WaitForChange(
() => config["Key"] == null,
() => config["Key"] is null && token.HasChanged,
"Notification failed for deleting XML file.");

Assert.Null(config["Key"]);
Expand All @@ -870,7 +870,7 @@ await WaitForChange(
_fileSystem.WriteFile(_jsonFile, @"{""Key"": ""JsonValue1""}");

await WaitForChange(
() => config["Key"] == "JsonValue1",
() => config["Key"] == "JsonValue1" && token.HasChanged,
"Notification failed for re-creating JSON file.");

Assert.Equal("JsonValue1", config["Key"]);
Expand All @@ -891,7 +891,7 @@ await WaitForChange(
_fileSystem.WriteFile(_iniFile, @"Key = IniValue1");

await WaitForChange(
() => config["Key"] == "IniValue1",
() => config["Key"] == "IniValue1" && token.HasChanged,
"Notification failed for re-creating ini file.");

Assert.Equal("IniValue1", config["Key"]);
Expand Down
Loading