473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

InternalsVisibleTo chicken and egg problem?

Hi all,

I'm trying to create unit tests in a seperate assembly from the
library. However there are some internal classes that deserve testing
but are not intended to be used by the public.

I'm trying to use the InternalsVisibleTo attribute so that the unit
test assembly can see the internals of the library for testing. The
unit testing is done a release version which is given a strong name
(the unit test assembly gets a strong name as well). The problem is
that the attribtute, when used with a PublicKeyToken attempts to verify
that the unit test assembly exists, which it doesn't, because it
depends on the library assembly.

The result is that the library is built with warnings, and the unit
test assembly can't see the internals..

any ideas on getting around this?

thanks
Andy

Feb 22 '06 #1
0 1410

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mary Ellen Curtin | last post by:
I've been looking at source code for a lot of web designers' sites, and I frequently see: - DOCTYPE spec - link to a style sheet - but still plenty of old-fashioned repetitive formatting...
2
by: adammitchell | last post by:
I'm trying to create a local copy of a popular CRM database called Salesforce.com. Many of the tables in the DB have FOREIGN KEY references that I want to preserve, but I've run into a chicken and...
3
by: Jim Ley | last post by:
Hi, It seems the mozilla guys have chosen another (almost certainly poor choice in my initial thoughts) of having document.all evaluate to false, but document.all catch the chicken event - also...
9
by: gzinger | last post by:
I have an assembly with some internal methods that I have to access from my web service. I learned that I can use “InternalsVisibleTo” to enable such access. Since I have control over both the...
4
by: Mike | last post by:
Hi. I've strong-named an application using the 'Signing' option in project properties. Four friend assemblies exist in AssemblyInfo.cs, and look like this: After strong-naming the...
5
by: Petrakid | last post by:
Alright, so I asked earlier about this pig/chicken leg count thing and got some good help with it, thanks. I come to find out now that I do not supply just one number, but a range of numbers. ...
15
RMWChaos
by: RMWChaos | last post by:
In my ongoing effort to produce shorter, more efficient code, I have created a "chicken and egg" / "catch-22" problem. I can think of several ways to fix this, none of them elegant. I want my code...
8
by: Diggla | last post by:
I was asked to look into a performance problem on a newly migrated DB server. The db server was moved from a local-physical-nt4-sybase to remote (10 mb wan link), virtual, Windows 2003, SQL...
2
by: drsmooth | last post by:
Hi, i have made several different things using a double buffer and a jframe before but never had this problem: if you look thrugh the code, you can see that i draw a whole bunch of stuff to the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.