Skip to content

Instantly share code, notes, and snippets.

Created July 28, 2017 01:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dcomartin/f3f43d0ab127cfe2aac5b11df47b5ccd to your computer and use it in GitHub Desktop.
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