コード例 #1
0
        public void CheckNativeType_TestedBehavior_ExpectedResult()
        {
            const string testString = "asd";

            var rsaKey = new RsaKey();
            Assert.That(() => TypeCheckerHelper.IsNativeType(testString), Is.True);
            Assert.That(() => TypeCheckerHelper.IsNativeType(rsaKey), Is.False);
        }
コード例 #2
0
        public void RsaKey_TestedBehavior_ExpectedResult()
        {
            var rsaKey = new RsaKey();

            Directory.Delete(ConfigurationManager.AppSettings["RsaKeyFolder"], true);
            rsaKey.CreateKeys();

            Assert.That(Directory.Exists(ConfigurationManager.AppSettings["RsaKeyFolder"]), Is.True);
        }