Skip to content

Instantly share code, notes, and snippets.

@alexandrnikitin
Forked from candychiu/gist:c5f08cd3631ccb0364fc
Last active August 29, 2015 14:02
Show Gist options
  • Save alexandrnikitin/a6e1fbf6b3621cdd5f2b to your computer and use it in GitHub Desktop.
Save alexandrnikitin/a6e1fbf6b3621cdd5f2b to your computer and use it in GitHub Desktop.
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