Currently if there is a method with overloads multiple test methods with the same name are generated which causes the compilation of the test methods to fail.
Example:
Source Code
public class Foo
{
public void Bar()
{
//Does stuff that needs testing
}
public void Bar(int i)
{
//Does stuff that needs testing
}
}
Generated Test Code
public class FooTests
{
[Fact]
public void BarTest()
{
//Test code goes here
}
[Fact]
//This is a duplicate definition!!! Won't compile
public void BarTest()
{
//Test code goes here
}
}
Currently if there is a method with overloads multiple test methods with the same name are generated which causes the compilation of the test methods to fail.
Example:
Source Code
Generated Test Code