Last active
June 13, 2021 11:10
-
-
Save babaktaremi/3f82e1adad045defcc16200d14fb2d49 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
[Test] | |
public void OutAndRefTest() | |
{ | |
var mock = new Mock<IFoo>(); | |
var requiredOutput = "ok"; | |
mock.Setup(foo => foo.TryParse("ping", out requiredOutput)).Returns(true); | |
string result; | |
Assert.Multiple(() => | |
{ | |
Assert.IsTrue(mock.Object.TryParse("ping",out result)); | |
Assert.That(result,Is.EqualTo(requiredOutput)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment