Beispiel #1
0
        public Client(Stream stream, Hash hash, string username, string password) : base(stream, hash)
        {
            _username = username;
            _password = SaslPrep.Run(password);

            _nonce = CreateNonce();
        }
Beispiel #2
0
 public void When_PassedInvalidCharacters_ShouldThrowAnException()
 {
     Should.Throw <ProhibitedValueException>(() =>
     {
         var _ = SaslPrep.Run("\u0007");
     });
 }
Beispiel #3
0
 public void When_PassedBidiCharacters_ShouldThrowAnException()
 {
     Should.Throw <BidirectionalFormatException>(() =>
     {
         var _ = SaslPrep.Run("\u0627\u0031");
     });
 }
Beispiel #4
0
        public void When_PassedUnicode_ShouldOutputCharacters(string input, string result)
        {
            var output = SaslPrep.Run(input);

            output.ShouldBe(result);
        }