Created
November 18, 2013 19:41
-
-
Save JamesBender/7534035 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
[TestFixture] | |
public class FutureMockingTests | |
{ | |
[Test] | |
public void FutureTest() | |
{ | |
var expectedDependency = Mock.Create<DependencyClass>(); | |
Mock.Arrange(() => expectedDependency.GetDependentValue()) | |
.IgnoreInstance() | |
.Returns(5); | |
var classUnderTest = new DependentClass(); | |
Assert.AreEqual(5, classUnderTest.GetValue()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment