Created
October 4, 2010 14:02
-
-
Save davidpadbury/609728 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
void Main() | |
{ | |
var testMock = new Mock<Test>(); | |
testMock.SetupGet(m => m.IsSomething).Returns(true); | |
var test = testMock.Object; | |
Debug.Assert(test.IsSomethingTrue); | |
} | |
public abstract class TestBase | |
{ | |
public virtual bool IsSomething { get; set; } | |
} | |
public class Test : TestBase | |
{ | |
public bool IsSomethingTrue | |
{ | |
get { return IsSomething == true; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment