本文整理汇总了C#中RegexWizard.Framework.Scope.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# Scope.Equals方法的具体用法?C# Scope.Equals怎么用?C# Scope.Equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RegexWizard.Framework.Scope
的用法示例。
在下文中一共展示了Scope.Equals方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetInnerScope_SetsInnerRightScopePropertyToRightScope2
public void SetInnerScope_SetsInnerRightScopePropertyToRightScope2()
{
scope = new Scope("defge");
scope.DefineInnerScope(2, 1);
Scope rightScopeWithCorrectProperties = new Scope("ge", 3);
rightScopeWithCorrectProperties.IsExplicit = false;
Assert.IsTrue(rightScopeWithCorrectProperties.Equals(scope.InnerRightScope));
}
示例2: SetInnerScope_SetsInnerLeftScopePropertyToLeftScope2
public void SetInnerScope_SetsInnerLeftScopePropertyToLeftScope2()
{
scope = new Scope("defg");
scope.DefineInnerScope(2, 1);
Scope leftScopeWithCorrectProperties = new Scope("de", 0);
leftScopeWithCorrectProperties.IsExplicit = false;
Assert.IsTrue(leftScopeWithCorrectProperties.Equals(scope.InnerLeftScope));
}
示例3: SetInnerScope_SetsInnerRightScopePropertyToRightScope
public void SetInnerScope_SetsInnerRightScopePropertyToRightScope()
{
scope = new Scope("abc");
scope.DefineInnerScope(1, 1);
Scope rightScopeWithCorrectProperties = new Scope("c", 2, false);
Assert.IsTrue(rightScopeWithCorrectProperties.Equals(scope.InnerRightScope));
}
示例4: SetInnerScope_SetsInnerLeftScopePropertyToLeftScope
public void SetInnerScope_SetsInnerLeftScopePropertyToLeftScope()
{
scope = new Scope("abc", 0, true);
scope.DefineInnerScope(1, 1);
Scope leftScopeWithCorrectProperties = new Scope("a", 0, false);
Assert.IsTrue(leftScopeWithCorrectProperties.Equals(scope.InnerLeftScope));
}