unit test in c# with moq framework in visual studio Programming Software Development 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 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 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 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 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 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 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! by viviennejewelry … exploder new products each week! Wholesale price: 5-17 USD. MOQ: 100$ for trail order. Top quality guarantee, paypal accept! -New…