本文整理汇总了C#中Card.ShouldEqual方法的典型用法代码示例。如果您正苦于以下问题:C# Card.ShouldEqual方法的具体用法?C# Card.ShouldEqual怎么用?C# Card.ShouldEqual使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card.ShouldEqual方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: cards_are_the_same_if_their_value_and_suit_is_the_same
public void cards_are_the_same_if_their_value_and_suit_is_the_same()
{
var card1 = new Card(Suit.Spades, 2);
var card2 = new Card(Suit.Spades, 2);
card1.ShouldEqual(card2);
}
示例2: Search_WithTestQuery_ReturnsCorrectCard
public void Search_WithTestQuery_ReturnsCorrectCard()
{
var expected = new Card
{
Id = Constants.WelcomeCardOfTheWelcomeBoardId,
Name = "Welcome to Trello!",
Desc = "",
Closed = false,
IdList = Constants.WelcomeBoardBasicsListId,
IdBoard = Constants.WelcomeBoardId,
Due = new DateTime(2015, 01, 01, 09, 00, 00),
Labels = new List<Card.Label>(),
IdShort = 1,
Url = "https://trello.com/c/pD2NljjG/1-welcome-to-trello",
Pos = 32768,
Badges = new Card.CardBadges
{
Votes = 1,
Attachments = 1,
Comments = 2,
CheckItems = 0,
CheckItemsChecked = 0,
Description = false,
Due = new DateTime(2015, 01, 01, 09, 00, 00),
FogBugz = ""
}
}.ToExpectedObject();
var actual = _trelloReadOnly.Search("Welcome to Trello").Cards.First();
expected.ShouldEqual(actual);
}