コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (TestClassName != null ? TestClassName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Result;
         hashCode = (hashCode * 397) ^ (TestMethods != null ? TestMethods.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
 /// <summary>
 /// Initialize the rewriter instance by test type
 /// </summary>
 /// <param name="testType"></param>
 public TestSyntaxRewriter(TestClassName testType) : base()
 {
     this.testType = testType;
     this.helper   = new RewriterHelper(testType);
 }
コード例 #3
0
ファイル: AbstractType.cs プロジェクト: xposure/Atma.Math
 public void ResetRandom(int x)
 {
     Random = new Random(x + TestClassName.GetHashCode());
 }
コード例 #4
0
ファイル: TestTypes.cs プロジェクト: jbebe/TestGenerator
 public TestClassNameAttribute(TestClassName _)
 {
 }
コード例 #5
0
ファイル: RewriterHelper.cs プロジェクト: jbebe/TestGenerator
 public RewriterHelper(TestClassName testType)
 {
     this.testType = testType;
 }
コード例 #6
0
ファイル: TestHelper.cs プロジェクト: jbebe/TestGenerator
 public static string GenerateTestName(string fileName, TestClassName testType)
 => Regex.Replace(fileName, @"(\.cs)$", $".{testType:G}.Generated$1");