本文整理汇总了C#中CPV.equiv方法的典型用法代码示例。如果您正苦于以下问题:C# CPV.equiv方法的具体用法?C# CPV.equiv怎么用?C# CPV.equiv使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPV
的用法示例。
在下文中一共展示了CPV.equiv方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EqualsOnSimilarISeqWorks
public void EqualsOnSimilarISeqWorks()
{
CPV v1 = new CPV(new object[] { 'a', 'b', 'c' });
StringSeq s1 = StringSeq.create("abc");
Expect(v1.equiv(s1));
}
示例2: EqualsOnPersistentVectorWithSameItemsIsTrue
public void EqualsOnPersistentVectorWithSameItemsIsTrue()
{
CPV v1 = new CPV(new object[] { 1, 2, 3 });
CPV v2 = new CPV(new object[] { 1, 2, 3 });
CPV v3 = new CPV(new object[] { 1 });
CPV v4 = new CPV(new object[] { 1 });
CPV v5 = new CPV(new object[] { });
CPV v6 = new CPV(new object[] { });
Expect(v1.equiv(v2));
Expect(v3.equiv(v4));
Expect(v5.equiv(v6));
}
示例3: EqualsOnNonPersistentVectorIsFalse
public void EqualsOnNonPersistentVectorIsFalse()
{
CPV v1 = new CPV(new object[] { 1, 2, 3 });
Expect(v1.equiv(7), False);
}
示例4: EqualsOnPersistentVectorWithDifferentItemsIsFalse
public void EqualsOnPersistentVectorWithDifferentItemsIsFalse()
{
CPV v1 = new CPV(new object[] { 1, 2, 3 });
CPV v2 = new CPV(new object[] { 1, 2, 4 });
CPV v3 = new CPV(new object[] { 1, 2 });
CPV v4 = new CPV(new object[] { 1, 2, 3, 4 });
Expect(v1.equiv(v2), False);
Expect(v1.equiv(v3), False);
Expect(v1.equiv(v4), False);
}
示例5: EqualsOnDissimilarISeqFails
public void EqualsOnDissimilarISeqFails()
{
CPV v1 = new CPV(new object[] { 'a', 'b', 'c' });
StringSeq s1 = StringSeq.create("ab");
StringSeq s2 = StringSeq.create("abd");
StringSeq s3 = StringSeq.create("abcd");
Expect(v1.equiv(s1), False);
Expect(v1.equiv(s2), False);
Expect(v1.equiv(s3), False);
}