public void CreateInstanceNoExceptionIsThrown() { try { JsonConfigReader jsonConfigReader = new JsonConfigReader(); } catch (Exception ex) { Assert.Fail("Expected no exception, but got: " + ex.Message); } }
[TestMethod] public void GetConnectionStringIsEqual() { JsonConfigReader jsonConfigReader = new JsonConfigReader(); Assert.AreEqual("Data Source=.;Initial Catalog=sdeveloper;Integrated Security=true;MultipleActiveResultSets=true;", jsonConfigReader.GetConnectionString()); }
public void GetConnectionStringIsNotEmpty() { JsonConfigReader jsonConfigReader = new JsonConfigReader(); Assert.IsFalse(string.IsNullOrEmpty(jsonConfigReader.GetConnectionString())); }