示例#1
0
 public void SampleTest()
 {
     Assert.AreEqual("clubs", DefineCardSuit.DefineSuit("3♣"), "Should return clubs with \"3♣\"");
     Assert.AreEqual("spades", DefineCardSuit.DefineSuit("Q♠"), "Should return clubs with \"Q♠\"");
     Assert.AreEqual("diamonds", DefineCardSuit.DefineSuit("9♦"), "Should return clubs with \"9♦\"");
     Assert.AreEqual("hearts", DefineCardSuit.DefineSuit("J♥"), "Should return clubs with \"J♥\"");
 }
示例#2
0
        public void FixedTest()
        {
            foreach (var card in Deck)
            {
                var expected = Solution(card);
                var message  = FailureMessage(card, expected);
                var actual   = DefineCardSuit.DefineSuit(card);

                Assert.AreEqual(expected, actual, message);
            }
        }