473,756 Members | 5,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InternalsVisibl eTo 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 InternalsVisibl eTo 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 1431

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

Similar topics

6
1933
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 embedded in the page body, which is laid out with tables
2
8396
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 egg problem. Table "A" has a reference to table "B," and table "B" has a reference to table "A." So I can't CREATE one until the other exists. Is there a way to disable these checks until I've created all the schema? Here's what I see...
3
1665
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 document.all.tags will work. It seems that the document.all not evaluating to true is to stop the really dumb object assumption scripts to fail and the document.all scripts that don't bother with any object detection to all of a sudden
9
2898
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 class library project (with the internal stuff) and the web project it seems that the scenario is possible. However, the problem seems to be with the web service project being a web project. I followed all possible documentation and postings to...
4
8754
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 application my friend references are giving the error: "Friend assembly reference Microsoft.Practices.EnterpriseLibrary.Logging.Tests is invalid. Strong-name signed assemblies must specify a public key in their InternalsVisibleTo
5
1723
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. So there could be between 500 and 1000 chicken/pig legs that I need to input and the program must determine all of the possibilities of legs between the chickens and the pigs. See
15
2251
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 to declare var stop if it was not passed to the function. The problem is that stop would be equal to a value dependent on var index that has not been declared yet, but index cannot be created until stop is declared. So you see my chicken and egg...
8
7528
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 2005. The client side application had to be modified to work with MS SQL. This is all second hand information as I have just been thrown into this. Most of the people who set this up ran.
2
3340
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 screen and sometimes, i get a frame or two of just blank jframe color public void draw() { BufferStrategy bf = this.getBufferStrategy(); Graphics2D g = null; if(scrollPos>lastCoveredPos) lastCoveredPos =...
0
9455
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9271
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2665
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.