Created
June 23, 2014 12:53
-
-
Save candychiu/c5f08cd3631ccb0364fc 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
namespace Lib | |
{ | |
public interface Counter { int Count(string s); } | |
public abstract class AbstractClass : AbstractParent | |
{ | |
public abstract int Foo(int x); | |
public int Foo(string s) { return Foo(Counter.Count(s)); } | |
} | |
public abstract class AbstractParent | |
{ | |
internal abstract Counter Counter { get; } | |
} | |
} | |
[Test] | |
public void Test() | |
{ | |
// this line threw the exception in the first email | |
var instance = Substitute.For<Lib.AbstractClass>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment