public void InvalidConnectionMustThrowExceptionOnInit() { Exception exception = null; try { var repository = new MongoDbYoutubeRepository(""); } catch (Exception e) { exception = e; } Assert.NotNull(exception); }
public void ValidConnectionMustNotThrowExceptionOnInit() { Exception exception = null; try { var repository = new MongoDbYoutubeRepository(Resources.MongoDbConnection); } catch (Exception e) { exception = e; } Assert.Null(exception); }