public class Assembly
{
static void Main(string[] args)
{
Assembly assembly = new Assembly();
var myAssembly = Assembly.Load(@"D:\MyLabBeDevelopmet1.0\Test\bin\Debug\MongoDBLogger.dll");
var eventNotifierObj = Activator.CreateInstance("MongoDBLogger.Logger"," MongoDBLogger.dll");
EventNotifier.IEventNotifier eventNotifier = eventNotifierObj as EventNotifier.IEventNotifier;
eventNotifier.Log(FinalXML);
public class MongoAssemblyTest
{
[TestMethod]
public void `TestMethod1`()
{
Assembly assembly = new Assembly();
var Assembly = Assembly.Load(@"D:\MyLabBeDevelopmet1.0\Test\bin\Debug\MongoDBLogger.dll");
var eventNotifierObj = Activator.CreateInstance("MongoDBLogger.Logger"," MongoDBLogger.dll");
EventNotifier.IEventNotifier eventNotifier = eventNotifierObj as EventNotifier.IEventNotifier;
eventNotifier.Log(FinalXML);
}
}
I am tried to run Unit Test case from Assembly class but it's not excuting. please help me resolve the issue i don't what is going wrong that my code is not working..