Created
July 28, 2017 01:30
-
-
Save dcomartin/f3f43d0ab127cfe2aac5b11df47b5ccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cake.Core.Diagnostics; | |
using FakeItEasy; | |
using Xunit; | |
namespace Cake.AppSettingReplacer.Tests | |
{ | |
public class ReplacerTests | |
{ | |
private readonly FakeCakeContext _context; | |
public ReplacerTests() | |
{ | |
_context = new FakeCakeContext(); | |
} | |
[Fact] | |
public void Should_write_to_cake_log() | |
{ | |
_context.ReplaceAppSetting("App.config", "Website", "CodeOpinion.com"); | |
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