taking IEnumerable<CustomAttributeBuilder>.
* AssemblyBuilderTest.cs: Added tests for DefineUnmanagedResource and
DefineVersionInfoResource overloads that check whether only a single
unmanaged resource can be defined. Improved test for SetCustomAttribute.
* AssemblyNameTest.cs: Added test for effect of AssemblyNameFlags on
FullName. Added test for PublicKey with value "null". Added ctor test
for Retargetable spec.
* AssemblyName.cs: Added support for Retargetable spec in FullName.
svn path=/trunk/mcs/; revision=93348
as well.
* AssemblyBuilderTest.cs: Improved existing AssemblyName related tests.
Enabled AssemblyName tests that previously failed.
* AssemblyNameCas.cs: Sync test methods with AssemblyNameTest.cs.
* AssemblyNameTest.cs: Removed AssertEqualsByteArrays method since
NUnit supports this out-of-the-box. Use more meaningful names for
some existing tests. Improved existing tests and added lots more.
Enabled tests that were previously failing. Fixed and improved
tests for public key; the original "public key" was actually a
key pair.
* AssemblyName.cs: Fixed default value for ProcessorArchitecture to
match MS. On 2.0 profile, return zero-length in FullName is no name
is set, and throw a SecurityException in FullName and GetPublicKeyToken
if a public key is set with no corresponding public key token.
Fixed FullName to also include PublicKeyToken spec with "null" value
if public key is empty byte array. Fixed corlib part of bug #351057.
In SetPublicKey, modify Flags accordingly. On the 2.0 profile, verify
the public key when the public key token is computed.
svn path=/trunk/mcs/; revision=92314
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
absolute path before passing it to Assembly.InternalGetAssemblyName
as the CodeBase is not set in that case.
* AssemblyNameTest.cs: Added test for CodeBase of AssemblyName
filled by AssemblyName.GetAssemblyName. Added tests for bug #79661.
svn path=/trunk/mcs/; revision=66822
* BadImageFormatException.cs: Changed message for default ctor to
match MS. Use internal message field of Exception to check whether
Message is null. Match MS default messages when no message is
set. Fixed ToString to match MS.
* BadImageFormatExceptionTest.cs: Added ctors tests.
* AssemblyName.cs: No need to convert filename to absolute path before
passing it to Assembly.InternalGetAssemblyName. This allows our
exception messages to be better match those of MS.
svn path=/trunk/mcs/; revision=66696
* Assembly.cs, AssemblyName.cs, ConstructorInfo.cs, EventInfo.cs,
FieldInfo.cs, MemberInfo.cs, MethodBase.cs, MethodInfo.cs, Module.cs,
ParameterInfo.cs, PropertyInfo.cs: Added some missing interfaces and
attributes that were added in 1.1 SP1 or 2.0 beta2.
svn path=/trunk/mcs/; revision=46031
* Assembly.cs: UnprotectedGetName is now virtual to allow for more
initialization in AssemblyBuilder. The [Granted|Refused]PermissionSet
now use the ResolvingPolicyLevel to support the policy
FullTrustAssemblies during resolution.
* AssemblyName.cs: Return null instead of "new byte [0]" if no public
key is available.
svn path=/trunk/mcs/; revision=45969
* AssemblyName.cs: Changes to support the creation of version
instance from icalls. This change also helps to keep the
AssemblyName tests running fine.
svn path=/trunk/mcs/; revision=45384
* AssemblyName.cs: Implemented EscapedCodeBase using the copy of
System.Uri (System.dll) located in Mono.Security.Uri. Added missing
null check in GetObjectData.
* Module.cs: Added a FileIOPermission for PathDiscovery on
FullyQualifiedName property (but not on Name property like MS).
Added missing null check in GetObjectData.
svn path=/trunk/mcs/; revision=42512
* Assembly.cs: Get default evidences when no evidences have been
supplied. Added internal methods for CAS.
* AssemblyName.cs: New constructor for NET_2_0.
svn path=/trunk/mcs/; revision=32042
runtime. This way the codebase is set properly. The codebase is
using g_filename_to_uri which expects a full path.
svn path=/trunk/mcs/; revision=29079
* Assembly.cs (InternalGetAssemblyName): New icall.
* AssemblyName.cs (GetAssemblyName): Implement this without loading
the assembly in question. Fixes#51035.
svn path=/trunk/mcs/; revision=20067
* AssemblyName.cs: GetPublicKey now return an empty array (not null)
when an assembly isn't signed with a StrongName (to match MS
implementation) and null when no assembly is referenced. Also removed
commented code (no bug reported so it was probably not used).
svn path=/trunk/mcs/; revision=9856