Sujeet Raman

Sujeet Raman

  • 859
  • 927
  • 351.8k

What is the alternative of Microsoft.Data.Tools.Unittest in core 3.1

Jul 16 2021 8:21 AM

 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

Microsoft.Data.Tools.Unittest-what is the alteranate in core 3.1 we add

SqlDatabaseTestClass i am getting error.

 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();

            }
        }
    }


Answers (1)