public void Properties() { byte[] token = {1,2,3,4,5}; var id = new ApplicationId(token, "Pizza", new Version(1, 0), "pepperoni", "it-it"); CheckId(id, token); CheckId(id.Copy(), token); }
public void Properties() { byte[] token = { 1, 2, 3, 4, 5 }; var id = new ApplicationId(token, "Pizza", new Version(1, 0), "pepperoni", "it-it"); CheckId(id, token); CheckId(id.Copy(), token); }
public void Copy () { ApplicationId id1 = new ApplicationId (defaultPublicKeyToken, defaultName, defaultVersion, defaultProc, defaultCulture); ApplicationId id2 = id1.Copy (); Assert.IsTrue (id1.Equals (id2), "Equals-1"); Assert.IsTrue (id2.Equals (id1), "Equals-2"); Assert.IsFalse (Object.ReferenceEquals (id1, id2), "ReferenceEquals"); }