Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using Cake.Core.Diagnostics;
using FakeItEasy;
using Xunit;
namespace Cake.AppSettingReplacer.Tests
public class ReplacerTests
private readonly FakeCakeContext _context;
public ReplacerTests()
_context = new FakeCakeContext();
public void Should_write_to_cake_log()
_context.ReplaceAppSetting("App.config", "Website", "");
A.CallTo(() => _context.Log.Write(A<Verbosity>._, A<LogLevel>._, A<string>._))
.MustHaveHappened(Repeated.Like(i => i == 1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.