Consider the following snippet; public enum ReportType {Monthly,Quarterly} public class BaseReport { public ReportType ReportType {get;set;}
I\'m having a strange experience with moq/mocking. Im trying to mock the data going into a method so that i dont have to have adatabase availableat test time.
I\'m using a Session wrapper as written below. The problem I have is when running tests the try doesn\'t work and it goes to the catch so session variables are never being set. I\'m using Moq to creat
I am trying to build a Generic testbuilder for generating objects, that i want to use in tests. One of the things I want to create is Mock implementations of interfaces. I want these Mocks to have Str
I want to test the following code: public IEnumerable<KeyValuePair<Fact, Exception>> ValidateAll()
I\'ve been using MVP pattern in my application. But I have problems with testing my method which are called after button is clicked. Here is the code:
I am running unit tests on code which uses VirtualParthUtility.GetAbsolute, but am having problems mocking the context for this to work.
I am using Ninject for my IoC container and I\'m trying to write some unit tests.I found the Ninject Mocking Kernel so I thought I\'d give it a go but I can\'t get the simplest test to pass. I am miss
I am coming to c# from ruby on rails where I did TDD using Rspec and Mocha. I was looking to get into get into a mocking framework and an older stackoverflow post pointed me in the direction of MOQ an
I wonder if you could help me understand the following line: mock.Verify(m => m.ProcessOrder(It.IsAny<Cart>(),