TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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..
Reply
Answers (
0
)
Read PDF file
books