¡@

Home 

c# Programming Glossary: mocking

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

I may need more than that in future. c# unit testing mocking share improve this question You could do it by creating.. etc. You can then mock this interface using a mocking framework I recommend Moq . Edit somebody's done this and kindly..

Moq: unit testing a method relying on HttpContext

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

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

Best Practices of Test Driven Development Using C# and RhinoMocks [closed]

http://stackoverflow.com/questions/124210/best-practices-of-test-driven-development-using-c-sharp-and-rhinomocks

Some of the points refer to limitations of Rhino Mocks a mocking framework for C# but the rules may apply more generally as well... can be easily mocked using Rhino Mocks and other mocking frameworks. Isolate external dependencies. Reason Unresolved..

How to start unit testing or TDD?

http://stackoverflow.com/questions/1365943/how-to-start-unit-testing-or-tdd

to use dependency injection Unity for the mater of easier mocking but I'm still not quite sure on what stage I should start writing..

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

requestContext Where can I get more information on mocking my RequestContext and HttpContext using Moq I am trying to mock.. to mock cookies and the general context. c# asp.net mvc mocking moq httpcontext share improve this question HttpContext..

Using IoC for Unit Testing

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

that work well for using it in unit tests c# unit testing mocking inversion of control share improve this question Generally.. .Object var sut new MyClass dep In some cases an auto mocking container can be nice to have but you don't need to use the..

Unit testing void methods?

http://stackoverflow.com/questions/246038/unit-testing-void-methods

can either use a Mock google or search stackoverflow on mocking frameworks to mimic the DB or hit the actual DB and verify if..

What C# mocking framework to use? [closed]

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

C# mocking framework to use closed I want to start using mock objects.. Ultimate So my question is what one is your favourite .NET mocking framework and why c# .net unit testing mocking share improve.. .NET mocking framework and why c# .net unit testing mocking share improve this question I've not used most of the ones..

What do programmers mean when they say, “Code against an interface, not an object.”?

http://stackoverflow.com/questions/4456424/what-do-programmers-mean-when-they-say-code-against-an-interface-not-an-objec

or fake that you want or you can use any of the prefab mocking libraries like Rhino.Mocks.MockRepository.StrictMock T which..

Mocking Static methods using Rhino.Mocks

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

something which would let me accomplish the same c# tdd mocking rhino mocks share improve this question Is it possible to..

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

or Moq So what is the difference between Ninject a mocking framework like RhinoMock or moq I google'd this but it is still.. but it is still unclear. c# .net dependency injection mocking share improve this question Ninject is Dependency Injection.. Dependency Injection for .NET. RhinoMocks and Moq are both mocking frameworks. Now both have nothing to do with each other. I really..

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

http://stackoverflow.com/questions/92869/nunit-vs-visual-studio-2008s-test-projects-for-unit-testing

test projects here are the pro's of NUnit. NUnit has a mocking framework. NUnit can be run outside of the IDE this can be useful..

Mocking classes that aren't interfaces

http://stackoverflow.com/questions/131806/mocking-classes-that-arent-interfaces

classes that aren't interfaces I've been writing some providers.. testing mocking providers share improve this question Mocking frameworks should be able to create for you a mock object based..

Good Case For Interfaces

http://stackoverflow.com/questions/1335586/good-case-for-interfaces

of a number of possible implementations interchangeably. Mocking and unit testing. Mocking frameworks are most easily used when.. implementations interchangeably. Mocking and unit testing. Mocking frameworks are most easily used when the methods are virtual..

TDD and Mocking out TcpClient

http://stackoverflow.com/questions/150341/tdd-and-mocking-out-tcpclient

and Mocking out TcpClient How do people approach mocking out TcpClient..

NUnit Mocking not working for Singleton Method

http://stackoverflow.com/questions/1601073/nunit-mocking-not-working-for-singleton-method

Mocking not working for Singleton Method Bear with me I'm new to NUnit...

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

I've recently read this blog post http codevanced.net post Mocking frameworks comparison.aspx and wondered if any of the StackOverflow..

Mocking a DataReader and getting a Rhino.Mocks.Exceptions.ExpectationViolationException: IDisposable.Dispose(); Expected #0, Actual #1

http://stackoverflow.com/questions/1792984/mocking-a-datareader-and-getting-a-rhino-mocks-exceptions-expectationviolationex

a DataReader and getting a Rhino.Mocks.Exceptions.ExpectationViolationException..

Mocking an NHibernate ISession with Moq

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

an NHibernate ISession with Moq I am starting a new project..

Mocking Extension Methods with Moq

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

Extension Methods with Moq I have a preexisting Interface.....

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

T how to setup a method that takes an expression I am Mocking my repository interface and am not sure how to setup a method..

Why classes tend to be defined as interface nowadays?

http://stackoverflow.com/questions/3281582/why-classes-tend-to-be-defined-as-interface-nowadays

classes as Interface . Why Is there a good reason TDD Mocking A design pattern ... c# design patterns interface share improve..

Unit testing with EF4 “Code First” and Repository

http://stackoverflow.com/questions/3463017/unit-testing-with-ef4-code-first-and-repository

using the IDbSet interface or a Stub using one of the Mocking frameworks such as Moq or RhinoMock. Assuming you wrote your..

Mocking Static methods using Rhino.Mocks

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

Static methods using Rhino.Mocks Is it possible to mock a static..

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 Dependency Injection and Mocking framework Ninject vs RhinoMock or Moq So what is the difference.. gets the right instance based on some config somewhere. A Mocking Framework Boy this was like rocket science to me. But Steven..

Rhinomocks - Mocking delegates

http://stackoverflow.com/questions/5650804/rhinomocks-mocking-delegates

Mocking delegates public interface IServiceInvoker R InvokeService..

Casting interfaces for deserialization in JSON.NET

http://stackoverflow.com/questions/5780888/casting-interfaces-for-deserialization-in-json-net

considered sensitive and unit testing is highly important. Mocking of objects for atomic test scripts is not possible with fully..