Created
May 11, 2015 18:36
-
-
Save rudism/497970d4d189af9857c2 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
namespace MoqTest | |
{ | |
using System; | |
using Moq; | |
public interface IMockMe | |
{ | |
string HelloWorld<T> (); | |
} | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
var mock = new Mock<IMockMe> (); | |
mock.Setup (x => x.HelloWorld<string> ()).Returns ("Hello World"); | |
Console.WriteLine (mock.Object.HelloWorld<string> ()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment