コード例 #1
0
        public void TestEncodPassword_Error()
        {
            const string expectedDecodePassword = "******";
            var          result = PasswordUtils.Encode(testStr);

            Assert.AreEqual(expectedDecodePassword, result, "Значения не совпали");
        }
コード例 #2
0
        public void TestEncodPassword_Error_v2()
        {
            const string expectedDecodePassword = "******";
            var          result = PasswordUtils.Encode(testStr);

            StringAssert.Contains(expectedDecodePassword, result);
        }
コード例 #3
0
        public void TestEncodePassword_Successful()
        {
            const string expectedDecodePassword = "******";
            var          result = PasswordUtils.Encode(testStr);

            Assert.AreEqual(expectedDecodePassword, result, "Корректный результат");
        }