mirror of
https://github.com/github/codeql.git
synced 2026-03-26 17:28:29 +01:00
29 lines
561 B
C#
29 lines
561 B
C#
using System;
|
|
using System.Security.Cryptography;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace Microsoft.VisualStudio.TestTools.UnitTesting
|
|
{
|
|
class TestClassAttribute : Attribute
|
|
{
|
|
public TestClassAttribute() { }
|
|
}
|
|
|
|
class TestMethodAttribute : Attribute
|
|
{
|
|
public TestMethodAttribute() { }
|
|
}
|
|
}
|
|
|
|
[TestClass]
|
|
public class InsecureRandomnessTest
|
|
{
|
|
|
|
[TestMethod]
|
|
public void TestUnsafe()
|
|
{
|
|
// ACCEPTABLE: Using insecure random, but this is a test
|
|
Random r = new Random();
|
|
}
|
|
}
|