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
C#
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 LodhaRank #31 · 39.8K reputationPosted Jul 16, 2021, 11:13 AM EDT
I believe, this package is not available for Core 3.1. So, workaround would be to replacenet5.0 with NET Framework 4.7.
Shweta LodhaRank #31 · 39.8K reputationPosted Jul 15, 2021, 6:24 PM EDT
Are you getting any error ? Please elaborate more on what type of issue are you facing?
Sujeet RamanRank #1,329 · 1.3K reputationPosted Jul 16, 2021, 4:09 AM EDT