You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.
public class Calculator
{
public virtual int Add(int x, int y)
{
return x + y;
}
}
public class Calculator2 : Calculator
{
public override int Add(int x, int y)
{
return x + y + 1;
}
}
public class BaseFacts
{
protected Calculator calc;
public BaseFacts()
{
calc = new Calculator();
}
[Fact]
public void Adds2()
{
var result = calc.Add(2, 2);
Assert.Equal(result, 4);
}
}
public class Facts : BaseFacts
{
public Facts()
{
calc = new Calculator2();
}
[Fact]
public void Adds3()
{
var result = calc.Add(3, 3);
Assert.Equal(result, 7);
}
}
Resharper test runner only shows two tests and actually there are three, as show in Visual Studio test explorer.
As a detail, Resharper briefly shows the inherited test at the beginning but it disappears and the test is in fact executed.
The text was updated successfully, but these errors were encountered:
Given this test case:
Resharper test runner only shows two tests and actually there are three, as show in Visual Studio test explorer.
As a detail, Resharper briefly shows the inherited test at the beginning but it disappears and the test is in fact executed.
The text was updated successfully, but these errors were encountered: