using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
public static void Main()
Console.WriteLine("Sorted Deck");
Deck_Tests tests = new Deck_Tests();
tests.NewDeck_ToString_InOrder();
Console.WriteLine("Shuffled Deck");
public List<Card> Cards { get; protected set; } = new List<Card>();
for(int i = 2; i <= 10; i++) {
Cards.Add(new Card(i,"R"));
for(int i = 1; i <= 10; i++) {
Cards.Add(new Card(i,"B"));
public virtual void Shuffle()
throw new NotImplementedException();
public override string ToString()
return String.Join(" ", Cards.Select(c => c.ToString()));
public Card(int number, string color) {
public override string ToString() {
public void NewDeck_ToString_InOrder()
Assert.AreEqual("R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10", new Deck().ToString(), "The new Deck was not in order or did not contain the correct cards");
public void ShuffledDeck_ToString_NotInOrder()
throw new NotImplementedException();