public void AreEqualWorksWithSameContent() { CloudStorageCredentials credentials = new CloudStorageCredentials { Token = new CloudStorageToken { AccessToken = "a" } }; CloudStorageCredentials credentials2 = new CloudStorageCredentials { Token = new CloudStorageToken { AccessToken = "a" } }; Assert.IsTrue(credentials.AreEqualOrNull(credentials2)); credentials = null; credentials2 = null; Assert.IsTrue(credentials.AreEqualOrNull(credentials2)); }
public void AreEqualWorksWithDifferentPassword() { CloudStorageCredentials credentials = new CloudStorageCredentials { Password = SecureStringExtensions.StringToSecureString("abc") }; CloudStorageCredentials credentials2 = new CloudStorageCredentials { Password = SecureStringExtensions.StringToSecureString("def") }; Assert.IsFalse(credentials.AreEqualOrNull(credentials2)); }