-
-
Save alexandrnikitin/a6e1fbf6b3621cdd5f2b 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 virtual 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