コード例 #1
0
        public void Constructor_WithProperString_ParserProperly()
        {
            var parameters = new SimpleHashParameters(Test1);

            Assert.AreEqual(300, parameters.Iterations);
            Assert.AreEqual("Rfc2898DeriveBytes", parameters.Algorithm);
            Assert.AreEqual("Y6IkgQ9U4p/dt7dIFCtApBSALB3N5i3qc/ojDKsj5gM=", parameters.PasswordHash);
            Assert.AreEqual("3buJ9SI7xEfO88bh3+Y4+g==", parameters.Salt);
        }
コード例 #2
0
 public void Constructor_WithWrongValue_ThrowsException()
 {
     var parameters = new SimpleHashParameters("fgkljdflg");
 }
コード例 #3
0
 public void Constructor_WithEmptyValue_ThrowsException()
 {
     var parameters = new SimpleHashParameters("");
 }
コード例 #4
0
 public void Constructor_WithNull_ThrowsException()
 {
     var parameters = new SimpleHashParameters(null);
 }