Barkha Shukla

Barkha Shukla

  • NA
  • 16
  • 6.3k

assembly loading

Jan 4 2015 7:10 AM
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..