public void EqualsMethodOneIdentityNull() { UserAssignedIdentity identity1 = new UserAssignedIdentity(Guid.Empty, Guid.Empty); UserAssignedIdentity identity2 = null; Assert.IsFalse(identity1.Equals(identity2)); }
public void TestEqualsFalse() { UserAssignedIdentity identity1 = new UserAssignedIdentity(new Guid("72f988bf-86f1-41af-91ab-2d7cd011db47"), new Guid("de29bab1-49e1-4705-819b-4dfddceaaa98")); UserAssignedIdentity identity2 = new UserAssignedIdentity(new Guid("72f988bf-86f1-41af-91ab-2d7cd011db42"), new Guid("de29bab1-49e1-4705-819b-4dfddceaaa98")); Assert.IsFalse(UserAssignedIdentity.Equals(identity1, identity2)); }
public void EqualsMethodFalse(string clientId1, string principalId1, string clientId2, string principalId2) { UserAssignedIdentity identity1 = new UserAssignedIdentity(new Guid(clientId1), new Guid(principalId1)); UserAssignedIdentity identity2 = new UserAssignedIdentity(new Guid(clientId2), new Guid(principalId2)); Assert.IsFalse(identity1.Equals(identity2)); }
public void TestEqualsBothIdentitiesNull() { UserAssignedIdentity identity1 = null; UserAssignedIdentity identity2 = null; Assert.IsTrue(UserAssignedIdentity.Equals(identity1, identity2)); }