i have a database project unit test in .net core 3.1.I confused how to use test as like in .net framework 4.7.2? I need to change below solution to .net core 3.1. i cant find the alternatives
MTEST i am using in .net core below code is not working in .net core 3.1.pls temm me a solution
public class UnitTest1
{
[TestMethod]
[AssemblyInitialize()]
public static void InitializeAssembly(TestContext ctx)
{
// Setup the test database based on setting in the
// configuration file
SqlDatabaseTestClass.TestService.DeployDatabaseProject();
SqlDatabaseTestClass.TestService.GenerateData();
}
}
}
Shweta LodhaPosted Jul 16, 2021, 3:13 PM
I believe, this package is not available for Core 3.1. So, workaround would be to replacenet5.0 with NET Framework 4.7.
Sujeet RamanPosted Jul 16, 2021, 8:09 AM
Shweta LodhaPosted Jul 15, 2021, 10:24 PM
Are you getting any error ? Please elaborate more on what type of issue are you facing?