public void ComparePinnedKeysByFingerprintsAllSame() { var pinnedKey1 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); var pinnedKey2 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); Assert.That(pinnedKey1, Is.EqualTo(pinnedKey2)); }
public void ComparePinnedKeysByFingerprintsAllSame() { var pinnedKey1 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); var pinnedKey2 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); Assert.StrictEqual(pinnedKey1, pinnedKey2); }
public void ComparePinnedKeysByAlgorithm() { var pinnedKeySha1 = new PinnedKey(PinAlgorithm.SHA1, new byte[0]); var pinnedKeySha256 = new PinnedKey(PinAlgorithm.SHA256, new byte[0]); Assert.That(pinnedKeySha1, Is.Not.EqualTo(pinnedKeySha256)); }
public void ComparePinnedKeysByAlgorithm() { var pinnedKeySha1 = new PinnedKey(PinAlgorithm.SHA1, new byte[0]); var pinnedKeySha256 = new PinnedKey(PinAlgorithm.SHA256, new byte[0]); Assert.NotStrictEqual(pinnedKeySha256, pinnedKeySha1); }
public void ComparePinnedKeysByFingerprintsAllSame() { var pinnedKey1 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); var pinnedKey2 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); Assert.StrictEqual(pinnedKey1, pinnedKey2); }
public void ComparePinnedKeysByAlgorithm() { var pinnedKeySha1 = new PinnedKey(PinAlgorithm.SHA1, new byte[0]); var pinnedKeySha256 = new PinnedKey(PinAlgorithm.SHA256, new byte[0]); Assert.NotStrictEqual(pinnedKeySha256, pinnedKeySha1); }
public void ComparePinnedKeysByFingerprintsAllSame() { var pinnedKey1 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); var pinnedKey2 = new PinnedKey(PinAlgorithm.SHA1, new byte[] { 1 }); Assert.That(pinnedKey1, Is.EqualTo(pinnedKey2)); }
public void ComparePinnedKeysByAlgorithm() { var pinnedKeySha1 = new PinnedKey(PinAlgorithm.SHA1, new byte[0]); var pinnedKeySha256 = new PinnedKey(PinAlgorithm.SHA256, new byte[0]); Assert.That(pinnedKeySha1, Is.Not.EqualTo(pinnedKeySha256)); }