public void CreateSigningKey() { var signer = new AwsSigner(); var config = Helpers.CreateExampleConfig(); const string expected = "c4afb1cc5771d871763a393e44b703571b55cc28424d1a5e86da6ed3c154a4b9"; var dateTime = DateTimeOffset.Parse("2015-08-30T12:36:00Z"); var result = signer.CreateSigningKey(config.Secret, dateTime, config.Region, config.Service); // Convert the result to hex string just to compare // In the actual world this stays a byte array Assert.AreEqual(expected, signer.ToHexString(result), "Create signing key failed"); }