<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/nmock/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/nmock/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/nmock/support-requests/</id><updated>2010-10-18T17:23:35Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>How to Mock Request.Form</title><link href="https://sourceforge.net/p/nmock/support-requests/11/" rel="alternate"/><published>2010-10-18T17:23:35Z</published><updated>2010-10-18T17:23:35Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netdb3713f6fcfdd8a9dcc2986fd19bfd9da4235a07</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;I am trying to mock the NameValueCollection got from Request.Form. I have tried so many ways and it always throws an error "Not a Mock Object Parameter: Reciever". Any help in this regard would be much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Raja&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to mock internal interfaces </title><link href="https://sourceforge.net/p/nmock/support-requests/10/" rel="alternate"/><published>2007-06-05T08:46:56Z</published><updated>2007-06-05T08:46:56Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net22c5541b6a77b68b33231a759354c81c700219d0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How to mock internal interfaces?&lt;br /&gt;
I have an assembly with an interface declared internal.&lt;br /&gt;
My tests in an other assembly that should have a mock of the interface.&lt;br /&gt;
The test throws an exception with: Access Denied to the interface.&lt;/p&gt;
&lt;p&gt;Shall I use: &lt;br /&gt;
[assembly: InternalsVisibleTo("??????")]&lt;br /&gt;
to get access to the interface from Nmock.&lt;/p&gt;
&lt;p&gt;What are the name of the assembly (????) ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>2.0.0-rc1 does not build from CVS (ElementMatcher missing)</title><link href="https://sourceforge.net/p/nmock/support-requests/9/" rel="alternate"/><published>2006-10-02T16:45:05Z</published><updated>2006-10-02T16:45:05Z</updated><author><name>-glenn-</name><uri>https://sourceforge.net/u/gdoten/</uri></author><id>https://sourceforge.net5a36e234acd38ca04e8f1ee97df2a49d64880c23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hope this is the right forum. I downloaded the NMock2&lt;br /&gt;
2.0.0-rc1 sources from CVS and it wouldn't build. The&lt;br /&gt;
Matchers\ElementMatcher.cs file in the NMock2 project&lt;br /&gt;
is apparently not in the solution file (.sln). Once I&lt;br /&gt;
set Visual Studio to show all files and then included&lt;br /&gt;
ElementMacher.cs in the solution then all three&lt;br /&gt;
projects built.&lt;/p&gt;
&lt;p&gt;-glenn-&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>www.nmock not accessible</title><link href="https://sourceforge.net/p/nmock/support-requests/8/" rel="alternate"/><published>2006-08-16T20:29:06Z</published><updated>2006-08-16T20:29:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0d2f070bc3eeaf4deba2285bfbbdca05df13db29</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I encountered the following error page when trying to&lt;br /&gt;
access the nmock site through the specified URL:&lt;/p&gt;
&lt;p&gt;An error has been encountered in accessing this page.&lt;/p&gt;
&lt;p&gt;1. Server: www.nmock.org&lt;br /&gt;
2. URL path: /&lt;br /&gt;
3. Error notes: File does not exist:&lt;br /&gt;
/home/groups/w/ww/www/htdocs/&lt;br /&gt;
4. Error type: 404&lt;br /&gt;
5. Request method: GET&lt;br /&gt;
6. Request query string:&lt;br /&gt;
7. Time: 2006-08-16 13:24:22 PDT (1155759862)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mocking interfaces derived from other interfaces</title><link href="https://sourceforge.net/p/nmock/support-requests/7/" rel="alternate"/><published>2005-07-07T01:05:36Z</published><updated>2005-07-07T01:05:36Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3b78c4f7f586870e5e9e10965431a85b07845fe1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My class under test is manipulating an IList, and I'm &lt;br /&gt;
trying to mock this using NMock2. However, the class &lt;br /&gt;
calls the Count property, which is strictly part of &lt;br /&gt;
ICollection so NMock2 barfs.&lt;/p&gt;
&lt;p&gt;Is this expected behavior? If so, what are the &lt;br /&gt;
workarounds?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
nick.gunn@deletethisbitcba.com.au&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>unable to downoad v1.1 of nmock.source.zip</title><link href="https://sourceforge.net/p/nmock/support-requests/6/" rel="alternate"/><published>2005-03-02T15:24:50Z</published><updated>2005-03-02T15:24:50Z</updated><author><name>tim200</name><uri>https://sourceforge.net/u/eck200g/</uri></author><id>https://sourceforge.netd738279f85a43af87f1a35c4fd1a8841b758c7cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried to download the version 1.1 of nmock.source.zip &lt;br /&gt;
multiple times from different mirror sites, I only got &lt;br /&gt;
version 1.0.1 which is 356214 bytes in size. why?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Methods calls order</title><link href="https://sourceforge.net/p/nmock/support-requests/5/" rel="alternate"/><published>2004-10-27T13:47:58Z</published><updated>2004-10-27T13:47:58Z</updated><author><name>Andrew Kozhanov</name><uri>https://sourceforge.net/u/userid-1147392/</uri></author><id>https://sourceforge.net1c477c44e4a4c948af13ebbfd1a532d7746dd372</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any possibility to check that expected methods &lt;br /&gt;
are called in a particular order?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Andrew.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mocking calls that include out parameters</title><link href="https://sourceforge.net/p/nmock/support-requests/4/" rel="alternate"/><published>2004-10-24T21:22:58Z</published><updated>2004-10-24T21:22:58Z</updated><author><name>Phil Thompson</name><uri>https://sourceforge.net/u/philathompson/</uri></author><id>https://sourceforge.neta2e9a1f6683997d05277348ff27ee7a1d589dc28</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've just started using NMock to mock unmanaged Win32&lt;br /&gt;
API calls. I've written a thin wrapper class for these&lt;br /&gt;
calls to facilitate this however, I've encountered a&lt;br /&gt;
problem that's stopped me dead in my tracks. Many of&lt;br /&gt;
the API calls have out parameters and I have been&lt;br /&gt;
unable to find a way to setup expectations for these&lt;br /&gt;
parameters.&lt;/p&gt;
&lt;p&gt;I know you suggest using the real thing for external&lt;br /&gt;
APIs but being TAPI I don't really want to wait 30&lt;br /&gt;
seconds for it to connect and also increase my phone&lt;br /&gt;
bill everytime I run the tests :)&lt;/p&gt;
&lt;p&gt;If you have any suggestions I would be grateful.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Phil Thompson&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>read/write properties</title><link href="https://sourceforge.net/p/nmock/support-requests/3/" rel="alternate"/><published>2003-03-27T15:57:23Z</published><updated>2003-03-27T15:57:23Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net2be4377ae0f23f3ca3485790c69032ead5dd26d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't think the code will work well if you use &lt;br /&gt;
SetupResult() to store a value for a property and then &lt;br /&gt;
use Expect() to check if a property is being set.  When &lt;br /&gt;
Call() is called, there's no way to differentiate between &lt;br /&gt;
the two since you strip out &amp;amp;quot;get_&amp;amp;quot; and &amp;amp;quot;set_&amp;amp;quot;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>events </title><link href="https://sourceforge.net/p/nmock/support-requests/2/" rel="alternate"/><published>2003-03-27T15:50:44Z</published><updated>2003-03-27T15:50:44Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net80629f8e3317e08b1828bedb35530d08f18f062e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is it possible to add an ExpectAndRaise() function that &lt;br /&gt;
fires events.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>