Beispiel #1
0
        public void GetCardNames_ShouldBeThirteen()
        {
            List <String> sut = CardName.GetCardNames();

            Assert.AreEqual(sut.Count, 13);
            Assert.Contains("Ace", new Collection <String>(sut));
            Assert.Contains("Two", new Collection <String>(sut));
            Assert.Contains("Three", new Collection <String>(sut));
            Assert.Contains("Four", new Collection <String>(sut));
            Assert.Contains("Five", new Collection <String>(sut));
            Assert.Contains("Six", new Collection <String>(sut));
            Assert.Contains("Seven", new Collection <String>(sut));
            Assert.Contains("Eight", new Collection <String>(sut));
            Assert.Contains("Nine", new Collection <String>(sut));
            Assert.Contains("Ten", new Collection <String>(sut));
            Assert.Contains("Jack", new Collection <String>(sut));
            Assert.Contains("Queen", new Collection <String>(sut));
            Assert.Contains("King", new Collection <String>(sut));
        }
        public JsonResult CardNames()
        {
            List <String> cardNames = CardName.GetCardNames();

            return(Json(cardNames, JsonRequestBehavior.AllowGet));
        }