Created
May 18, 2012 21:51
-
-
Save analogrelay/2727787 to your computer and use it in GitHub Desktop.
BadImageFormatException - The signature is incorrect
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
public interface IConsole { | |
void WriteLine(string line); | |
} |
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
public class Test { | |
[Fact] | |
public void DoodadWritesToConsole() { | |
// Arrange | |
var thingyMock = new Mock<Thingy>(); | |
var doodad = new Doodad(thingyMock.Object); | |
// Act | |
doodad.DoAThing(writeToConsole: false); | |
// Assert | |
thingyMock.Verify(t => t.MakeConsole(), Times.Never()); | |
} | |
} |
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
public class Thingy { | |
public virtual IConsole MakeConsole() { return null; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment