Ejemplo n.º 1
0
 public void When_ProvidedWithAnError_ParseShouldThrowAnException(string response)
 {
     Should.Throw <MessageParseException>(() =>
     {
         var _ = ServerFirstMessage.Parse(response);
     });
 }
Ejemplo n.º 2
0
        public void When_ProvidedWithAMessage_ParseShouldSetTheProperties(string message)
        {
            var response = ServerFirstMessage.Parse(message);

            response.Iterations?.Value.ShouldBe(4096);
            response.Nonce?.Value.ShouldBe("fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j");
            response.Salt?.ToString().ShouldBe("s = QSXCR+Q6sek8bf92");
        }