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); }
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); }