¡@

Home 

c# Programming Glossary: moq

Assigning out/ref parameters in Moq

http://stackoverflow.com/questions/1068095/assigning-out-ref-parameters-in-moq

out ref parameters in Moq Is it possible to assign an out ref parameter using Moq 3.0.. Moq Is it possible to assign an out ref parameter using Moq 3.0 I've looked at using Callback but Action does not support.. but the project I'm working on is already using Moq. c# out ref moq 3 share improve this question Seems like..

How do you mock out the file system in C# for unit testing?

http://stackoverflow.com/questions/1087351/how-do-you-mock-out-the-file-system-in-c-sharp-for-unit-testing

mock this interface using a mocking framework I recommend Moq . Edit somebody's done this and kindly posted it online here..

Moq: unit testing a method relying on HttpContext

http://stackoverflow.com/questions/1214178/moq-unit-testing-a-method-relying-on-httpcontext

unit testing a method relying on HttpContext Consider a method.. I'd like to call this method from a unit test using the Moq framework. This assembly is part of a webforms solution. The.. The unit test looks like this but I am missing the Moq code. arrange string ADAccount BUGSBUNNY string fullADName LOONEYTUNES..

How do I mock the HttpContext in ASP.NET MVC using Moq?

http://stackoverflow.com/questions/1452418/how-do-i-mock-the-httpcontext-in-asp-net-mvc-using-moq

do I mock the HttpContext in ASP.NET MVC using Moq TestMethod public void Home_Message_Display_Unknown_User_when_coockie_does_not_exist.. on mocking my RequestContext and HttpContext using Moq I am trying to mock cookies and the general context. c# asp.net..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

to a single Test Double . You can use dynamic mocks like Moq or RhinoMocks to generate the Test Double but it is not required...

What C# mocking framework to use? [closed]

http://stackoverflow.com/questions/37359/what-c-sharp-mocking-framework-to-use

EasyMock.NET TypeMock Isolator Commercial Paid Rhino Mocks Moq NSubstitute JustMock Free version and Commercial Paid version.. you've listed so I can't be objective about it but I use Moq and it has been awesome. The fluent interface makes it a joy.. the other frameworks don't have compile time checking. Moq certainly does. In my example above if the service class that..

Mocking Static methods using Rhino.Mocks

http://stackoverflow.com/questions/540239/mocking-static-methods-using-rhino-mocks

to intercept and redirect calls. RhinoMocks NMock and Moq cannot do this because these libraries are simpler they don't..

Difference between Dependency Injection and Mocking framework (Ninject vs RhinoMock or Moq)

http://stackoverflow.com/questions/5433211/difference-between-dependency-injection-and-mocking-framework-ninject-vs-rhinom

Injection and Mocking framework Ninject vs RhinoMock or Moq So what is the difference between Ninject a mocking framework.. Ninject is Dependency Injection for .NET. RhinoMocks and Moq are both mocking frameworks. Now both have nothing to do with.. you can use a mocking framework to write less code here. Moq uses a fluent interface and is quite nice. Using Moq would look..

Assigning out/ref parameters in Moq

http://stackoverflow.com/questions/1068095/assigning-out-ref-parameters-in-moq

project I'm working on is already using Moq. c# out ref moq 3 share improve this question Seems like it is not possible.. a solution See this forum post http code.google.com p moq issues detail id 176 this question http stackoverflow.com questions..

Moq: unit testing a method relying on HttpContext

http://stackoverflow.com/questions/1214178/moq-unit-testing-a-method-relying-on-httpcontext

to improve this code architecture c# unit testing mocking moq share improve this question Webforms is notoriously untestable..

How do I mock the HttpContext in ASP.NET MVC using Moq?

http://stackoverflow.com/questions/1452418/how-do-i-mock-the-httpcontext-in-asp-net-mvc-using-moq

cookies and the general context. c# asp.net mvc mocking moq httpcontext share improve this question HttpContext is read..

How do I MOQ the System.IO.FileInfo class… or any other class without an interface?

http://stackoverflow.com/questions/1582596/how-do-i-moq-the-system-io-fileinfo-class-or-any-other-class-without-an-inter

logFile _logFile logFile c# unit testing interface moq share improve this question Use SystemWrapper a library..

What are the real-world pros and cons of each of the major mocking frameworks?

http://stackoverflow.com/questions/1718463/what-are-the-real-world-pros-and-cons-of-each-of-the-major-mocking-frameworks

products because of issues. c# .net mocking rhino mocks moq share improve this question I don't know Moles at all but..

How to test method call order with Moq

http://stackoverflow.com/questions/1765738/how-to-test-method-call-order-with-moq

sure hope it gets added soon very handy. c# unit testing moq share improve this question It appears that it's not currently..

Mocking an NHibernate ISession with Moq

http://stackoverflow.com/questions/1828878/mocking-an-nhibernate-isession-with-moq

c# .net unit testing nhibernate moq share improve this question Rather than mocking the Session..

Verifying a method was called

http://stackoverflow.com/questions/1980108/verifying-a-method-was-called

string Hello return Thanks in advance c# .net mocking moq verify share improve this question The test fails when Hello..

Mocking Extension Methods with Moq

http://stackoverflow.com/questions/2295960/mocking-extension-methods-with-moq

the mixin call c# unit testing mocking extension methods moq share improve this question You may want to read Moq co..

Mock static property with moq

http://stackoverflow.com/questions/2416362/mock-static-property-with-moq

static property with moq I am pretty new to use moq . I am into creating some unit test.. static property with moq I am pretty new to use moq . I am into creating some unit test case to HttpModule and everything.. response have been mocked well with sample code I get from moq. I will appreciate if somebody can help me on this. Thanks in..

Moq.Mock<T> - how to setup a method that takes an expression

http://stackoverflow.com/questions/2751935/moq-mockt-how-to-setup-a-method-that-takes-an-expression

AdminController _mockRepos.Object c# unit testing nunit moq share improve this question You can set it up like this..

Using Moq to set indexers in C#

http://stackoverflow.com/questions/2916348/using-moq-to-set-indexers-in-c-sharp

25 someClass.Object.SomeIndexedProperty 3 c# unit testing moq indexer share improve this question I found a solution to..

How to MOQ an Indexed property

http://stackoverflow.com/questions/340827/how-to-moq-an-indexed-property

mock a call to an indexed property. I.e. I would like to moq the following object result myDictionaryCollection SomeKeyValue.. have any examples of how I can do this c# tdd mocking moq share improve this question It's not clear what you're trying..

.NET 4, AllowPartiallyTrustedCallers attribute, and security markings like SecurityCritical

http://stackoverflow.com/questions/5055632/net-4-allowpartiallytrustedcallers-attribute-and-security-markings-like-secur

that's marked SecurityCritical c# security .net 4.0 moq autofac share improve this question You are correct in .NET..

Difference between Dependency Injection and Mocking framework (Ninject vs RhinoMock or Moq)

http://stackoverflow.com/questions/5433211/difference-between-dependency-injection-and-mocking-framework-ninject-vs-rhinom

between Ninject a mocking framework like RhinoMock or moq I google'd this but it is still unclear. c# .net dependency..

Trouble updating my datagrid in WPF

http://stackoverflow.com/questions/13337558/trouble-updating-my-datagrid-in-wpf

General_Info.Rev_Num Quote_Data.MOA Quote_Data.MOQ Quote_Data.Markup Quote_Data.FOB Quote_Data.Shipping_Method.. MainGrid.Columns 9 .Header MOA MainGrid.Columns 10 .Header MOQ MainGrid.Columns 11 .Header Markup MainGrid.Columns 12 .Header..

How do I MOQ the System.IO.FileInfo class… or any other class without an interface?

http://stackoverflow.com/questions/1582596/how-do-i-moq-the-system-io-fileinfo-class-or-any-other-class-without-an-inter

do I MOQ the System.IO.FileInfo class&hellip or any other class without.. can't find the interface that I need to use to create the MOQ... so how do you successfully MOQ a class without an interface.. to use to create the MOQ... so how do you successfully MOQ a class without an interface It also isn't clear to me how I..

Mocking an NHibernate ISession with Moq

http://stackoverflow.com/questions/1828878/mocking-an-nhibernate-isession-with-moq

the controllers. When I attempt to Mock the ISession with MOQ i get the following error message Only property accesses are..

How to MOQ an Indexed property

http://stackoverflow.com/questions/340827/how-to-moq-an-indexed-property

to MOQ an Indexed property I am attempting to mock a call to an indexed.. a class my app uses. Does anyone know how to do this with MOQ I've tried variations on the following Dictionary string object.. compile. Is what I am trying to achieve possible with MOQ does anyone have any examples of how I can do this c# tdd mocking..