Sujeet Raman

Sujeet Raman

  • 793
  • 915
  • 330.6k

Database Unite test not working in .net core

Jul 15 2021 8:10 AM

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

        }
    }
}

 


Answers (3)