Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Moq Discussions
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
Moq Discussions
Contact owners and managers
1–30 of 705
Mark all as read
Report group
0 selected
Deni35
,
Sunny
3
6/14/17
How to match several arguments?
I rewrote to this: foreach (var i in items) { mock.Setup( x => x.GetItem( i.x, i.y ) ).Returns<
unread,
How to match several arguments?
I rewrote to this: foreach (var i in items) { mock.Setup( x => x.GetItem( i.x, i.y ) ).Returns<
6/14/17
Hui Zhao
, …
Ale Miralles
3
12/9/15
How to mock up an event?
I was going to ask the same. On 9 December 2015 at 13:12, Arno Brouwer <tallde...@gmail.com
unread,
How to mock up an event?
I was going to ask the same. On 9 December 2015 at 13:12, Arno Brouwer <tallde...@gmail.com
12/9/15
Hui Zhao
,
Ale Miralles
4
12/7/15
How to mock private fields?
That's true, but as R# suggest, it's just a warning. I doesn't mean that is forbidden. (
unread,
How to mock private fields?
That's true, but as R# suggest, it's just a warning. I doesn't mean that is forbidden. (
12/7/15
Hui Zhao
,
Emanuele DelBono
3
11/9/15
How to mock up appconfig value?
I tried the second one but why it is not working. On Monday, November 9, 2015 at 8:25:28 AM UTC-5,
unread,
How to mock up appconfig value?
I tried the second one but why it is not working. On Monday, November 9, 2015 at 8:25:28 AM UTC-5,
11/9/15
Hui Zhao
,
Vicenç Garcia
2
11/5/15
Return any string?
I think It.IsAny is meant to be used when you verify the behaviour of the mock. I recommend you to
unread,
Return any string?
I think It.IsAny is meant to be used when you verify the behaviour of the mock. I recommend you to
11/5/15
Hui Zhao
, …
Ale Miralles
13
11/2/15
About virtual method
No problem. I think all goes down to two choices: The first one, is refactor your code. I strongly
unread,
About virtual method
No problem. I think all goes down to two choices: The first one, is refactor your code. I strongly
11/2/15
Gordon Johnston
10/30/15
MOQ and readonly properties
I am trying to MOQ a CRM Plugin. The plugin receives a number of properties and I want to ensure that
unread,
MOQ and readonly properties
I am trying to MOQ a CRM Plugin. The plugin receives a number of properties and I want to ensure that
10/30/15
Hui Zhao
,
Ale Miralles
2
10/29/15
Why my setup was not matched
I guess in the ACT section you are missing the call to: keCallFlowApplicationMock.HandleCall() (Which
unread,
Why my setup was not matched
I guess in the ACT section you are missing the call to: keCallFlowApplicationMock.HandleCall() (Which
10/29/15
solai kannan
10/8/15
Create moq for property in entity framework
hi i have a method is repository public bool UpdateEffectiveDate(int driverId, DateTime effectiveDate
unread,
Create moq for property in entity framework
hi i have a method is repository public bool UpdateEffectiveDate(int driverId, DateTime effectiveDate
10/8/15
solai kannan
10/8/15
how to create moq for property in entity framework
hi can anyone help how to write moq for entity for the method given below. especially for properties
unread,
how to create moq for property in entity framework
hi can anyone help how to write moq for entity for the method given below. especially for properties
10/8/15
Sambasiva konduri
,
alejandro miralles
2
7/30/15
how to test DbProviderFactories using Nuint /Rihno mocks
DbProviderFactories is a static class. You can't mock that. (At least not with moq). ~ Ale
unread,
how to test DbProviderFactories using Nuint /Rihno mocks
DbProviderFactories is a static class. You can't mock that. (At least not with moq). ~ Ale
7/30/15
RizThon
, …
Alex K
4
7/23/15
AtMost obsolete in v4
I disagree because for the "real mock" in the test I have to use Strict Mock(here're
unread,
AtMost obsolete in v4
I disagree because for the "real mock" in the test I have to use Strict Mock(here're
7/23/15
Phillip Haydon
,
Zelalem
2
6/10/15
Mock without specifying ALL optional parameters?
Phillip, You can use It.IsAny<> to ignore supplying any specific parameter value or use lamda
unread,
Mock without specifying ALL optional parameters?
Phillip, You can use It.IsAny<> to ignore supplying any specific parameter value or use lamda
6/10/15
William Bain
,
Chris F Carroll
2
3/11/15
Error when calling Mock<>.Setup for mocked DbContext
Updating to latest v4.2.xxx of Moq fixed this for me. On Tuesday, 4 November 2014 00:08:08 UTC,
unread,
Error when calling Mock<>.Setup for mocked DbContext
Updating to latest v4.2.xxx of Moq fixed this for me. On Tuesday, 4 November 2014 00:08:08 UTC,
3/11/15
codin freak
3/11/15
Moq.Proxy.ProxyMethodHook serialization error
Hi Using Moq with csla for mocking,new to Moq, while saving a editable business object with child
unread,
Moq.Proxy.ProxyMethodHook serialization error
Hi Using Moq with csla for mocking,new to Moq, while saving a editable business object with child
3/11/15
Anthony Dewhirst
2
10/23/14
Global Custom Match
I have come up with a solution for the moment that works for me. It needs expanding and possibly some
unread,
Global Custom Match
I have come up with a solution for the moment that works for me. It needs expanding and possibly some
10/23/14
widia ahadi Putra
,
Ross Jennings
2
7/17/14
Mocking WCF Services and dependecy to DB using Moq
I think this might still be in Moq 3ish syntax, but it's just off the top of my head so you may
unread,
Mocking WCF Services and dependecy to DB using Moq
I think this might still be in Moq 3ish syntax, but it's just off the top of my head so you may
7/17/14
妈豆豆
,
Zelalem
2
4/22/14
How to use Moq in multi-
Hello there, Use Moq to control dependencies and do unit level testing. In your case, it seems like
unread,
How to use Moq in multi-
Hello there, Use Moq to control dependencies and do unit level testing. In your case, it seems like
4/22/14
Konstantinos Papacharisiou
,
Jack Hughes
2
4/8/14
internal class state when mocking with moq
There is no class to have state because Moq doesn't instantiate an instance of it. Instead it
unread,
internal class state when mocking with moq
There is no class to have state because Moq doesn't instantiate an instance of it. Instead it
4/8/14
Vicenç Garcia
,
Daniel Cazzulino
2
2/18/14
RE: [Moq] Linq to Mocks return null
Sounds like this should be supported. Can you create an issue in github please? (Moq4 project) /kzu
unread,
RE: [Moq] Linq to Mocks return null
Sounds like this should be supported. Can you create an issue in github please? (Moq4 project) /kzu
2/18/14
Jozef Krchňavý
2/13/14
Linq to Mocks set null as result
Hello, is it possible to use Linq to Mock to set return value null? // This doesn't work: var
unread,
Linq to Mocks set null as result
Hello, is it possible to use Linq to Mock to set return value null? // This doesn't work: var
2/13/14
Charles Ritchea
1/31/14
Linq to Mocks - How to add behavior later?
Using the imperative style, I have a Mocked object that has behavior common to all my unit tests to
unread,
Linq to Mocks - How to add behavior later?
Using the imperative style, I have a Mocked object that has behavior common to all my unit tests to
1/31/14
Patrick Fletcher
,
Daniel Cazzulino
2
1/6/14
Mocking SignalR hub object
Maybe a good place to start would be SignalR tests themselves? They use Moq too... https://github.com
unread,
Mocking SignalR hub object
Maybe a good place to start would be SignalR tests themselves? They use Moq too... https://github.com
1/6/14
Daniel Cazzulino
,
Daniel Cazzulino
2
12/19/13
Re: [moq4] MockSequence and VerifyAll (#75)
there's a key issue here that I think is missing: a sequence can be used across several mocks. So
unread,
Re: [moq4] MockSequence and VerifyAll (#75)
there's a key issue here that I think is missing: a sequence can be used across several mocks. So
12/19/13
Rob
,
R. Knaus
2
12/17/13
Using Moq to test and mock method calls on a 'real' class
Just had a similar problem. In my case the solution was to change the access modifier of the method
unread,
Using Moq to test and mock method calls on a 'real' class
Just had a similar problem. In my case the solution was to change the access modifier of the method
12/17/13
Daniel Cazzulino
12/11/13
Re: [moq4] 4.1 does not support multi-threading (#62)
I scanned the PR and it looks good. I like the cleanup you've done too, separates the
unread,
Re: [moq4] 4.1 does not support multi-threading (#62)
I scanned the PR and it looks good. I like the cleanup you've done too, separates the
12/11/13
Paul Daulby
, …
Daniel Cazzulino
4
12/6/13
I am trying to figure out how to mock a function in another class to the one that i am testing
The answers on SO are spot-on on this. /kzu -- Daniel Cazzulino On Fri, Dec 6, 2013 at 10:13 AM, Paul
unread,
I am trying to figure out how to mock a function in another class to the one that i am testing
The answers on SO are spot-on on this. /kzu -- Daniel Cazzulino On Fri, Dec 6, 2013 at 10:13 AM, Paul
12/6/13
Daniel Cazzulino
, …
Chris Missal
9
10/31/13
Moq API documentation site
No worries! On the contrary, good questions make us wonder if we're satisfying everyone's
unread,
Moq API documentation site
No worries! On the contrary, good questions make us wonder if we're satisfying everyone's
10/31/13
Neil Haughton
,
Daniel Cazzulino
2
8/12/13
Re: [Moq] Digest for moqdisc@googlegroups.com - 1 Message in 1 Topic
VB IS VB.NET :P. Who does "plain" VB anymore? ;) I understand they want/have to write VB
unread,
Re: [Moq] Digest for moqdisc@googlegroups.com - 1 Message in 1 Topic
VB IS VB.NET :P. Who does "plain" VB anymore? ;) I understand they want/have to write VB
8/12/13
Oleksiy Shyshkov
,
Daniel Cazzulino
2
8/9/13
MOQ vs VB9 :-(
Yup, sucks to have partial lambda support in VB. It's not in scope for Moq to add anything to
unread,
MOQ vs VB9 :-(
Yup, sucks to have partial lambda support in VB. It's not in scope for Moq to add anything to
8/9/13