Ejemplo n.º 1
0
        public void GetNotSuppressedTest()
        {
            string          testString = "MD5 hash = new MD5CryptoServiceProvider(); //DevSkim: ignore DS126858,DS168931 until 1980-07-15";
            Suppression     sup        = new Suppression(testString);
            SuppressedIssue iss        = sup.GetSuppressedIssue("DS126858");

            Assert.IsNull(sup.GetSuppressedIssue("DS126858"), "Is suppressed DS126858 should be Null");
            Assert.IsNull(sup.GetSuppressedIssue("DS168931"), "Is suppressed DS168931 should be Null");
        }
Ejemplo n.º 2
0
        public void UseCase_SuppressExistingPast_Test()
        {
            string          testString = "MD5 hash = new MD5CryptoServiceProvider(); //DevSkim: ignore DS126858,DS168931 until 1980-07-15";
            SuppressionEx   sup        = new SuppressionEx(testString, "csharp");
            SuppressedIssue iss        = sup.GetSuppressedIssue("DS126858");

            Assert.IsNull(sup.GetSuppressedIssue("DS126858"), "Is suppressed DS126858 should be Null");
            Assert.IsNull(sup.GetSuppressedIssue("DS168931"), "Is suppressed DS168931 should be Null");
        }