public void ClearLogPressed_clears_log_correctly() { var model = new DevLogViewModel { ClearLogPressed = new Command <string>(async(s) => { bool result = await ClearLogText(s); Assert.True(result); }) }; _logger.Error("Test Error"); _logger.Error("Test Error"); _logger.Dispose(); model.ClearLogPressed.Execute(_filePath); }
public void RefreshLogPressed_refreshes_log_correctly() { var model = new DevLogViewModel { RefreshLogPressed = new Command <string>(async(s) => { bool result = await GetAndSetLogText(s); Assert.True(result); }) }; _logger.Error("Test Error"); _logger.Error("Test Error"); _logger.Dispose(); model.RefreshLogPressed.Execute(_filePath); }