public void GetTemplatesTest() { using (IRSignAPIInternal sut = new RSignAPI(GetCredentials())) { try { var list = sut.GetRules(); Assert.IsNotNull(list); Assert.AreNotEqual(list.Count(), 0); } catch (AuthenticationException) { Assert.Fail(); } } }