示例#1
0
 public void Setup()
 {
     _consoleMock = new Mock<IConsole>();
     _sut = new CardGame(_consoleMock.Object);
 }
示例#2
0
 public void Ctor_NoConsole()
 {
     CardGame sut = null;
     Assert.Catch<ArgumentNullException>(() => sut = new CardGame(null));
     Assert.IsNull(sut);
 }