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