public void SuccessAuthenTest() { //Just to cover the test coverage try { ctx.PostData("unit_testing", DateTime.Now); } catch { Assert.Fail("Please see env variable ONIX_FIREBASE_KEY, ONIX_FIREBASE_USERNAME, ONIX_FIREBASE_PASSWORD !!!"); } }
public void NoDataToPostTest() { //Just to cover the test coverage INoSqlContext ctx = new FirebaseNoSqlContext(); try { ctx.PostData("", new String("HELLO")); Assert.Fail("Exception should be thrown for no authen ealier !!!"); } catch { //Do nothing } }