public void ExerciseMiscMethods()
        {
            AssemblyNameExtension a1 = s_producers[0](s_assemblyStrings[0]);

            Assert.NotNull(a1.GetHashCode());

            Version newVersion = new Version(1, 2);

            a1.ReplaceVersion(newVersion);
            Assert.True(a1.Version.Equals(newVersion));

            Assert.NotNull(a1.ToString());
        }
示例#2
0
 /// <summary>
 /// Get the hash code
 /// </summary>
 public override int GetHashCode()
 {
     return(_from.GetHashCode());
 }