When creating tests in Visual Studio, the test class should be made public.
By default, when you add a new class in VS, it does NOT include the public decorator.
This works1
2
3
4
5
6public class CameraControllerTests : BaseTest{
[Fact]
public void AuthAttributes(){
AssertIsAuthDecorated<VLogProfileController>();
}
}
This doesn’t work. It will never be run by test runner.1
2
3
4
5
6class CameraControllerTests : BaseTest{
[Fact]
public void AuthAttributes(){
AssertIsAuthDecorated<VLogProfileController>();
}
}