public void Execute_ShouldThrow_IfParametersNull() { var map = new Map(3, 4); DungeonParameters parameters = null; var command = new FakeMapBuilderCommand(); Assert.That(() => command.Execute(map, parameters), Throws.ArgumentNullException); }
public void Execute_ShouldCallValidateParameters() { var map = new Map(3, 4); DungeonParameters parameters = new DungeonParameters(); var command = new FakeMapBuilderCommand(); command.Execute(map, parameters); Assert.That(command.ValidateParametersCalls, Is.EqualTo(1)); }