Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/24/10 12:35:19 (15 years ago)
Author:
epitzer
Message:

fix handling of public key token (#802)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Persistence Test/HeuristicLab.Persistence/UnitTests/UseCases.cs

    r2106 r2858  
    408408        foreach (Type t in a.GetTypes()) {
    409409          foreach (MemberInfo mi in t.GetMembers(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static)) {
     410            if (mi.DeclaringType.Name.StartsWith("<>"))
     411              continue;
    410412            if (char.IsLower(mi.Name[0])) {
    411413              if (mi.MemberType == MemberTypes.Field)
     
    506508
    507509    [TestMethod]
     510    public void TestHexadecimalPublicKeyToken() {
     511      string name = "TestClass, TestAssembly, Version=1.2.3.4, PublicKey=1234abc";
     512      string shortName = "TestClass, TestAssembly";
     513      Assert.AreEqual(name, TypeNameParser.Parse(name).ToString());
     514      Assert.AreEqual(shortName, TypeNameParser.Parse(name).ToString(false));
     515    }
     516
     517    [TestMethod]
    508518    public void TestMultipleFailure() {
    509519      List<NonSerializable> l = new List<NonSerializable>();
Note: See TracChangeset for help on using the changeset viewer.