Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 8 results for
moq
- Page 1
unit test in c# with moq framework in visual studio
Programming
Software Development
8 Years Ago
by PulsarScript
… return obj.send(); } } } } And implemented
moq
framework in visual studio ,to do the test,how … System; using Microsoft.VisualStudio.TestTools.UnitTesting; using
Moq
; using static ClassLibraryMoq.Class1; namespace UnitTestProject { …
unit testing using moq - verify does'n work
Programming
Software Development
13 Years Ago
by surajrai
… has been called on object rectObj. I have written a
moq
unit test but it fails. My method looks like this…
Re: unit testing using moq - verify does'n work
Programming
Software Development
13 Years Ago
by thines01
Does it actually matter that SetVectors() is called or that the IRectangle has the expected (valid) values?
Best practices when doing dependency injection with Entity Framework
Programming
7 Years Ago
by Pelle_3
… this, rather. So, to cut it short, I'm using
Moq
for mocking up the context class and the datasets. The…
how to write Moq unit testing for void methods
Programming
Software Development
13 Years Ago
by surajrai
Hi, I am working on a component based application. I have a method that does some calculation and returns nothing. say: public void DoSomething(int x, int y) { // do something } How to write testing for it. I can pass some dummy x,y values. But how and what we can Assert in the unit test project. Any help would be …
Re: how to write Moq unit testing for void methods
Programming
Software Development
13 Years Ago
by thines01
Does the method change anything external to the method? If so, you can see if that changed or that it does not throw an exception...
Re: how to write Moq unit testing for void methods
Programming
Software Development
13 Years Ago
by cale.macdonald
In addition to what thines said above, if the DoSomething method acts on an object you could mock out the object and see if a particular method was called with a given set of parameters
Re: Hi There!!!
Community Center
Say Hello!
17 Years Ago
by viviennejewelry
… exploder new products each week! Wholesale price: 5-17 USD.
MOQ
: 100$ for trail order. Top quality guarantee, paypal accept! -New…
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC