We Moved - This Forum is now Read-Only

Our new community is now available at https://support.submain.com/community/. We will leave historical discussions here in this forum view-only mode for search purposes, but moving forward, please post your questions in the appropriate category in the new community.

  SubMain - CodeIt.Right The First Time!


Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

Test is failed due to moles but in mstest its always PASS..

Last post 10-03-2011, 9:54 AM by Serge B. (SubMain). 1 replies.
Sort Posts: Previous Next
  •  10-03-2011, 2:41 AM 1873

    Test is failed due to moles but in mstest its always PASS..

            public void ScheduleTaskAndWaitToCompleteTest()
                bool executed = false;

                //Schedule the task.
                //As the Task is on the main thread, the action item is invoked
                Action workItem = () =>
                                            Console.WriteLine("Hello World!");
                                            executed = true;

                sScheduler.ScheduleTaskAndWaitToComplete(workItem, sCancellationTokenSource);


    Above is my  test method is failed when i used the testmatrix tool but when i  run test with mstest its status is PASS..

    Please give help me...

    Filed under: , ,
  •  10-03-2011, 9:54 AM 1874 in reply to 1873

    Re: Test is failed due to moles but in mstest its always PASS..

    Hi narendrapdange,

    TestMatrix does not support MS Moles currently. 



    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft MVP  |  ASP Insider
    » » CodeIt.Right Will Fix Your Code!™ - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |