No announcements
Found 2952801 threads
-
1 Votes
what is shims/stub/fakes in unit test
can you please explain stub and shim with example code mean how they look like with code.Answered | 4 Replies | 3568 Views | Created by Sudip_inn - Thursday, November 30, 2017 7:23 PM | Last reply by Sudip_inn - Thursday, December 7, 2017 12:34 PM -
1 Votes
how to mock DllImport ,using shim or stub?
Shimming of extern methods is not supported directly.Answered | 2 Replies | 5102 Views | Created by carrietks - Monday, August 5, 2013 3:48 AM | Last reply by Oleg V. Sych - Wednesday, August 7, 2013 5:58 PM -
0 Votes
Can I execute my unit test methods with stubs/shims commands in VS 2012 Professional?
I created the shim/stub using ultimate edition from my machine.Answered | 5 Replies | 2936 Views | Created by JAISH MATHEWS - Monday, December 17, 2012 11:10 AM | Last reply by MawashiKid - Tuesday, January 7, 2014 7:33 PM -
0 Votes
Not able create mock of method that contains out parameter using MS Fakes-Stub
Hi Dolly Thakur, It seems Stub has some limitations: Method signatures ...Answered | 1 Replies | 816 Views | Created by Dolly Thakur - Friday, July 22, 2016 9:08 AM | Last reply by Jack Zhai-MSFT - Monday, July 25, 2016 11:48 AM -
2 Votes
How to wite an Unit Test Case for Private Methods
How to: Test a Private Method 2.Answered | 2 Replies | 14974 Views | Created by Prakash Thangavel - Saturday, October 3, 2015 6:43 AM | Last reply by Sabah Shariq - Monday, October 5, 2015 10:44 AM -
0 Votes
How to unit test a method with switch case
Anyway, if you dont want to use any data source (CSV/XML/Database), the option would be to hardcode values within test method, create one test method per input set.Answered | 3 Replies | 10479 Views | Created by Bobbin Paulose - Wednesday, May 14, 2014 1:15 PM | Last reply by TejasJ - Thursday, May 15, 2014 4:31 AM -
0 Votes
How to write automated tests for web methods?
Why not treat them like normal methods and use whatever unit test tools you use for testing normal methods?Answered | 4 Replies | 5282 Views | Created by Dynamic - Monday, May 12, 2008 10:27 AM | Last reply by Seamus_m - Thursday, April 30, 2009 3:50 PM -
2 Votes
Fakes Assembly: Stub for interface is missing!?
Within the messages file I found the following line: C:\VeryLongPath\myNamespace\Fakes\myProject.fakes : warning : Cannot generate stub for ...Answered | 6 Replies | 4860 Views | Created by dante1265 - Monday, April 8, 2013 1:26 PM | Last reply by Buddh4 - Wednesday, August 21, 2013 6:41 AM -
1 Votes
How to Unit Test this Method?
What I need to achieve is to test UnitTestMe method and mocking Utils.Add (Not calling the production code but returning a mocked value).Answered | 8 Replies | 3242 Views | Created by Dynamic - Thursday, September 10, 2009 9:24 AM | Last reply by Wole Ogunremi - Thursday, September 10, 2009 3:13 PM -
0 Votes
stub for interface
thanks , i understand his meaning i am asking technically , do i just copy the signatures/stubs to a document/email or there is an option to generate it into a file?Answered | 3 Replies | 3004 Views | Created by A_NY - Thursday, December 3, 2009 9:47 PM | Last reply by P.Brian.Mackey - Friday, December 4, 2009 7:12 PM -
1 Votes
Coded UI frame work - how to write methods and call in test methods
Please let me know how to create the method and call in that method in a test method.Answered | 5 Replies | 1150 Views | Created by BKK9 - Thursday, December 19, 2013 1:53 PM | Last reply by AdrianHHH - Friday, December 20, 2013 11:42 PM -
0 Votes
How to write CASE statement?
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/f2df224e-22ea-4da5-bd9f-63056e25fe83 becase you have our SQL script i am sure ...Answered | 6 Replies | 3655 Views | Created by gk1393 - Thursday, August 19, 2010 1:53 AM | Last reply by Nik - Shahriar Nikkhah - Thursday, August 19, 2010 3:11 PM -
0 Votes
How to write stubs and shims test case for this method?
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ...Unanswered | 1 Replies | 1987 Views | Created by Devsoft1 - Friday, April 12, 2013 10:43 AM | Last reply by Amanda Zhu - Monday, April 15, 2013 1:57 AM -
1 Votes
How to Test the Threaded method
I suggest you not to test in that way.Answered | 3 Replies | 991 Views | Created by Bhagya patil - Monday, September 15, 2014 11:47 AM | Last reply by JuanLao - Tuesday, September 16, 2014 3:28 PM -
0 Votes
Testing method that deals with DB
For the BLL layer, you should use Stubs to test your code in isolation.Answered | 3 Replies | 5964 Views | Created by Developer2006 - Monday, October 26, 2009 9:35 PM | Last reply by Peli - Tuesday, October 27, 2009 12:51 PM -
0 Votes
How to associate an automated test method when import case from excel
In my side, if i associate a test case with an automated test in VS, i can see the content of the automated test method both in VS and ...Answered | 5 Replies | 4928 Views | Created by Shuping3 - Sunday, April 1, 2012 6:36 AM | Last reply by niveditabawa_MSFT - Thursday, April 5, 2012 2:52 PM -
1 Votes
Execute a method after running all test cases.
I have known I can use [AssemblyCleanup] attribute to execute a method after running all test cases in different classes but in same assembly.Answered | 4 Replies | 3774 Views | Created by Damon Wang - Saturday, December 31, 2011 7:06 AM | Last reply by Damon Wang - Wednesday, January 4, 2012 6:31 AM -
0 Votes
Writing a defect from a failed test case after test run
Run my test case and save the results.Answered | 5 Replies | 7639 Views | Created by be good1 - Thursday, January 28, 2010 6:58 PM | Last reply by be good1 - Friday, January 29, 2010 7:45 PM -
5 Votes
Sample Code to Link CodedUI Test Methods to Test Cases imported in MTM
The issue was that I already had 100s of existing Test Cases in MTM and I needed to automatically (or rather programatically) link these existing Test Cases to ...Answered | 15 Replies | 11634 Views | Created by Arjun Bharadwaj - Thursday, January 13, 2011 5:06 AM | Last reply by Duke Huron - Friday, November 9, 2012 3:27 PM -
0 Votes
Multiple testers writing test cases in VSTS 2010 Test Manager
Hi, Multiple people can open a test plan and work on adding test cases to the individual test suites.Answered | 2 Replies | 5027 Views | Created by Catherine10200 - Friday, February 18, 2011 9:07 PM | Last reply by Rituparna MSFT - Sunday, February 20, 2011 3:18 PM - Items 1 to 20 of 2952801 Next ›
No announcements