public async Task After_Load_File_Changed_Is_Changes_Should_Be_True() { var a = new TestJsonConfigAdapter(); var t = await a.LoadAsync(); a.HasChanged().Should().BeFalse(); t.Name = "The name has been changed"; await File.WriteAllTextAsync("TestData\\json1.json", Newtonsoft.Json.JsonConvert.SerializeObject(t)); //Wait for file is stable await Task.Delay(2000); a.HasChanged().Should().BeTrue(); }
public async Task After_Load_Is_Changes_Should_Be_False() { var a = new TestJsonConfigAdapter(); var t = await a.LoadAsync(); a.HasChanged().Should().BeFalse(); t.Should().NotBeNull(); }
public void Before_Load_Is_Changes_Should_Be_True() { var a = new TestJsonConfigAdapter(); a.HasChanged().Should().BeTrue(); }