private static void AssertSAMLImmutableCredentials(SAMLImmutableCredentials expected, ImmutableCredentials actual) { var actualSaml = actual as SAMLImmutableCredentials; Assert.IsNotNull(actualSaml); Assert.AreEqual(expected.AccessKey, actualSaml.AccessKey); AssertExtensions.AssertDateTimesAreEqualToTheSecond(expected.Expires, actualSaml.Expires); Assert.AreEqual(expected.SecretKey, actualSaml.SecretKey); Assert.AreEqual(expected.Token, actualSaml.Token); Assert.AreEqual(expected.Subject, actualSaml.Subject); }