87 references to EqualityTesting
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (45)
Compilation\ForEachStatementInfoTests.cs (9)
51
EqualityTesting
.AssertEqual(default(ForEachStatementInfo), default(ForEachStatementInfo));
52
EqualityTesting
.AssertEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
53
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge2, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
54
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn2, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
55
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur2, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
56
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp2, e1, conv1, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
57
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv2, conv1), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
58
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv2), new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1));
59
EqualityTesting
.AssertNotEqual(new ForEachStatementInfo(isAsync: true, ge1, mn1, cur1, disp1, e1, conv1, conv1), new ForEachStatementInfo(isAsync: false, ge1, mn1, cur1, disp1, e1, conv1, conv1));
Compilation\QueryClauseInfoTests.cs (14)
24
EqualityTesting
.AssertEqual(default(QueryClauseInfo), default(QueryClauseInfo));
26
EqualityTesting
.AssertEqual(
34
EqualityTesting
.AssertEqual(
42
EqualityTesting
.AssertEqual(
50
EqualityTesting
.AssertNotEqual(
58
EqualityTesting
.AssertNotEqual(
66
EqualityTesting
.AssertEqual(
74
EqualityTesting
.AssertNotEqual(
82
EqualityTesting
.AssertNotEqual(
90
EqualityTesting
.AssertNotEqual(
98
EqualityTesting
.AssertNotEqual(
106
EqualityTesting
.AssertNotEqual(
114
EqualityTesting
.AssertNotEqual(
122
EqualityTesting
.AssertNotEqual(
Compilation\TypeInfoTests.cs (8)
25
EqualityTesting
.AssertEqual(default(TypeInfo), default(TypeInfo));
27
EqualityTesting
.AssertEqual(new TypeInfo(obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), int32, nullable, notNullable),
30
EqualityTesting
.AssertNotEqual(new TypeInfo(obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), nullable, nullable),
33
EqualityTesting
.AssertNotEqual(new TypeInfo(int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), nullable, nullable),
36
EqualityTesting
.AssertNotEqual(new TypeInfo(obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), nullable, nullable),
39
EqualityTesting
.AssertNotEqual(new TypeInfo(obj.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.Annotated), nullable, nullable),
42
EqualityTesting
.AssertEqual(new TypeInfo(int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None), int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None), default, default),
47
EqualityTesting
.AssertEqual(new TypeInfo(intEnum1.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None), int32.WithNullableAnnotation(CodeAnalysis.NullableAnnotation.None), default, default),
Symbols\NamespaceExtentTests.cs (7)
24
EqualityTesting
.AssertEqual(default(NamespaceExtent), default(NamespaceExtent));
25
EqualityTesting
.AssertNotEqual(default(NamespaceExtent), new NamespaceExtent(c2));
26
EqualityTesting
.AssertNotEqual(new NamespaceExtent(c1), default(NamespaceExtent));
28
EqualityTesting
.AssertEqual(new NamespaceExtent(c1), new NamespaceExtent(c1));
29
EqualityTesting
.AssertNotEqual(new NamespaceExtent(c1), new NamespaceExtent(c2));
30
EqualityTesting
.AssertEqual(new NamespaceExtent(a1), new NamespaceExtent(a1));
31
EqualityTesting
.AssertNotEqual(new NamespaceExtent(a1), new NamespaceExtent(a2));
Symbols\TypedConstantTests.cs (7)
74
EqualityTesting
.AssertEqual(default(TypedConstant), default(TypedConstant));
76
EqualityTesting
.AssertEqual(
83
EqualityTesting
.AssertEqual(
87
EqualityTesting
.AssertEqual(
91
EqualityTesting
.AssertEqual(
95
EqualityTesting
.AssertNotEqual(
99
EqualityTesting
.AssertNotEqual(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (35)
Syntax\ChildSyntaxListTests.cs (4)
23
EqualityTesting
.AssertEqual(default(ChildSyntaxList), default(ChildSyntaxList));
24
EqualityTesting
.AssertEqual(new ChildSyntaxList(node1), new ChildSyntaxList(node1));
33
EqualityTesting
.AssertEqual(default(ChildSyntaxList.Reversed), default(ChildSyntaxList.Reversed));
34
EqualityTesting
.AssertEqual(new ChildSyntaxList(node1).Reverse(), new ChildSyntaxList(node1).Reverse());
Syntax\SeparatedSyntaxListTests.cs (4)
25
EqualityTesting
.AssertEqual(default(SeparatedSyntaxList<CSharpSyntaxNode>), default(SeparatedSyntaxList<CSharpSyntaxNode>));
27
EqualityTesting
.AssertEqual(
31
EqualityTesting
.AssertEqual(
35
EqualityTesting
.AssertNotEqual(
Syntax\SyntaxListTests.cs (3)
30
EqualityTesting
.AssertEqual(default(SyntaxList<CSharpSyntaxNode>), default(SyntaxList<CSharpSyntaxNode>));
31
EqualityTesting
.AssertEqual(new SyntaxList<CSharpSyntaxNode>(node1), new SyntaxList<CSharpSyntaxNode>(node1));
33
EqualityTesting
.AssertNotEqual(new SyntaxList<CSharpSyntaxNode>(node1), new SyntaxList<CSharpSyntaxNode>(node2));
Syntax\SyntaxNodeOrTokenListTests.cs (4)
24
EqualityTesting
.AssertEqual(default(SeparatedSyntaxList<CSharpSyntaxNode>), default(SeparatedSyntaxList<CSharpSyntaxNode>));
25
EqualityTesting
.AssertEqual(new SyntaxNodeOrTokenList(node1, 0), new SyntaxNodeOrTokenList(node1, 0));
26
EqualityTesting
.AssertEqual(new SyntaxNodeOrTokenList(node1, 0), new SyntaxNodeOrTokenList(node1, 1));
27
EqualityTesting
.AssertNotEqual(new SyntaxNodeOrTokenList(node1, 0), new SyntaxNodeOrTokenList(node2, 0));
Syntax\SyntaxTokenListTests.cs (8)
23
EqualityTesting
.AssertEqual(default(SyntaxTokenList), default(SyntaxTokenList));
25
EqualityTesting
.AssertEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0));
28
EqualityTesting
.AssertNotEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 1), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0));
31
EqualityTesting
.AssertEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 1, 0), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0));
39
EqualityTesting
.AssertEqual(default(SyntaxTokenList).Reverse(), default(SyntaxTokenList).Reverse());
41
EqualityTesting
.AssertEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0).Reverse(), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());
44
EqualityTesting
.AssertNotEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 1).Reverse(), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());
47
EqualityTesting
.AssertEqual(new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 1, 0).Reverse(), new SyntaxTokenList(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());
Syntax\SyntaxTriviaListTests.cs (12)
24
EqualityTesting
.AssertEqual(default(SyntaxTriviaList), default(SyntaxTriviaList));
25
EqualityTesting
.AssertEqual(new SyntaxTriviaList(node1, node1.Node, 0, 0), new SyntaxTriviaList(node1, node1.Node, 0, 0));
26
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node1, node1.Node, 0, 1), new SyntaxTriviaList(node1, node1.Node, 0, 0));
27
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node1, node2.Node, 0, 0), new SyntaxTriviaList(node1, node1.Node, 0, 0));
28
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node2, node1.Node, 0, 0), new SyntaxTriviaList(node1, node1.Node, 0, 0));
31
EqualityTesting
.AssertEqual(new SyntaxTriviaList(node1, node1.Node, 1, 0), new SyntaxTriviaList(node1, node1.Node, 0, 0));
40
EqualityTesting
.AssertEqual(default(SyntaxTriviaList.Reversed), default(SyntaxTriviaList.Reversed));
41
EqualityTesting
.AssertEqual(new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse(), new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse());
42
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node1, node1.Node, 0, 1).Reverse(), new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse());
43
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node1, node2.Node, 0, 0).Reverse(), new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse());
44
EqualityTesting
.AssertNotEqual(new SyntaxTriviaList(node2, node1.Node, 0, 0).Reverse(), new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse());
47
EqualityTesting
.AssertEqual(new SyntaxTriviaList(node1, node1.Node, 1, 0).Reverse(), new SyntaxTriviaList(node1, node1.Node, 0, 0).Reverse());
Microsoft.CodeAnalysis.UnitTests (7)
CommonTypedConstantTests.cs (7)
39
EqualityTesting
.AssertEqual(default(TypedConstant), default(TypedConstant));
41
EqualityTesting
.AssertEqual(
48
EqualityTesting
.AssertEqual(
52
EqualityTesting
.AssertEqual(
56
EqualityTesting
.AssertEqual(
60
EqualityTesting
.AssertNotEqual(
64
EqualityTesting
.AssertNotEqual(