本文整理汇总了C#中SubscriptionToken.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# SubscriptionToken.Equals方法的具体用法?C# SubscriptionToken.Equals怎么用?C# SubscriptionToken.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SubscriptionToken
的用法示例。
在下文中一共展示了SubscriptionToken.Equals方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EqualsShouldReturnFalseWhenComparingDifferentInstances
public void EqualsShouldReturnFalseWhenComparingDifferentInstances()
{
var aToken = new SubscriptionToken();
object anotherToken = new SubscriptionToken();
Assert.That(aToken.Equals(anotherToken), Is.False);
}
示例2: EqualsShouldReturnFalseWhenComparingDifferentObjectInstances
public void EqualsShouldReturnFalseWhenComparingDifferentObjectInstances()
{
SubscriptionToken token = new SubscriptionToken();
object tokenObject = new SubscriptionToken();
Assert.IsFalse(token.Equals(tokenObject));
}
示例3: EqualsShouldReturnTrueWhenComparingSameObjectInstances
public void EqualsShouldReturnTrueWhenComparingSameObjectInstances()
{
SubscriptionToken token = new SubscriptionToken();
object tokenObject = token;
Assert.IsTrue(token.Equals(tokenObject));
}
示例4: Equals_Should_Return_False_When_Comparing_Different_Instances
public void Equals_Should_Return_False_When_Comparing_Different_Instances()
{
SubscriptionToken token = new SubscriptionToken();
object tokenObject = new SubscriptionToken();
Assert.False(token.Equals(tokenObject));
}
示例5: EqualsShouldReturnFalseWhenTokensAreNotSame
public void EqualsShouldReturnFalseWhenTokensAreNotSame()
{
var differentToken = new SubscriptionToken();
Assert.That(differentToken.Equals(Token), Is.False);
}
示例6: EqualsShouldReturnTrueWhenTokenIsTheSame
public void EqualsShouldReturnTrueWhenTokenIsTheSame()
{
SubscriptionToken token = new SubscriptionToken();
Assert.IsTrue(token.Equals(token));
}
示例7: EqualsShouldReturnFalseIfSubscriptionTokenPassedIsNull
public void EqualsShouldReturnFalseIfSubscriptionTokenPassedIsNull()
{
SubscriptionToken token = new SubscriptionToken();
Assert.IsFalse(token.Equals(null));
}