Created
December 10, 2014 15:45
-
-
Save hatelove/75132499e2a071a3ac11 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 IFoo | |
{ | |
string Bar(int a, string b); | |
} | |
[TestMethod] | |
public void Test_ReturnFromFunction_CallInfo() | |
{ | |
var foo = Substitute.For<IFoo>(); | |
foo.Bar(0, "").ReturnsForAnyArgs(x => "Hello " + x.Arg<string>()); | |
Assert.AreEqual("Hello World", foo.Bar(1, "World")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment