This library allows you to easily generate unit tests for your enum types. It contains a single public class called "TestWriter" with four static methods that can be used to generate unit tests for enums in different ways.
The namespace for the library is "TestCreator.Core". The library uses two enums called "AssertType" and "UnitTestFrameworkType" to specify the type of assertions to be used in the generated unit tests and the type of unit test framework to use, respectively.Creative Code With ErshadRaoufi
static void CreateUnitTestFilesFromAssemblies( string path, string[] selectedAssembly, AssertType assertType = AssertType.Assert, UnitTestFrameworkType unitTestFrameworkType = UnitTestFrameworkType.XUnit, bool overWriteTests = false)
static void CreateUnitTestFilesFromAssemblies( string path, string[] selectedAssembly, BaseUnitTestWriter baseUnitTestWriter, bool overWriteTests = false)
static void CreateUnitTestFilesFromAssemblies( IDictionary selectedAssembly, AssertType assertType = AssertType.Assert, UnitTestFrameworkType unitTestFrameworkType = UnitTestFrameworkType.XUnit, bool overWriteTests = false))
static void CreateUnitTestFilesFromAssemblies( IDictionary selectedAssembly, BaseUnitTestWriter baseUnitTestWriter, bool overWriteTests = false)
static void WriteUnitTest(this IServiceCollection services, string path, string[] selectedAssembly, AssertType assertType, UnitTestFrameworkType unitTestFrameworkType, bool overWriteTests = false)
static void WriteUnitTest(this IServiceCollection services, IDictionary selectedAssembly, AssertType assertType, UnitTestFrameworkType unitTestFrameworkType, bool overWriteTests = false)
static void WriteUnitTest(this IServiceCollection services, string path, string[] selectedAssembly, BaseUnitTestWriter baseUnitTestWriter, bool overWriteTests = false)
static void WriteUnitTest(this IServiceCollection services, IDictionary selectedAssembly, BaseUnitTestWriter baseUnitTestWriter, bool overWriteTests = false)