public void RunTest_ShouldThrowExceptionIfSetupIsNotProperlySpecified(string args) { // Arrange var game = new GameOfLifeEngine(new Strings(), _file); // Act TestDelegate act = () => game.Run(args.Split(',')); // Asset Assert.Throws <ArgumentException>(act); }
public void RunTest_ShouldThrowExceptionIfSetupIsNotSpecified1() { // Arrange var game = new GameOfLifeEngine(new Strings(), _file); // Act TestDelegate act = () => game.Run(null); // Asset Assert.Throws <ArgumentNullException>(act); }
public void RunTest_LoadsTheFile() { // Arrange var fileName = "setup2.txt"; var game = new GameOfLifeEngine(new Strings(), _file); // Act var result = game.Run(new string[] { fileName }).Status; // Asset Assert.AreEqual(fileName, result.FileName); }