Пример #1
0
        public void Requesting_missing_item_from_SSO_should_throw_an_exception()
        {
            var exceptionThrown = false;

            try
            {
                SSO.GetSSOInt32("IKTA.Common", "missingValue");
            }
            catch (Exception e)
            {
                exceptionThrown = true;
            }
            Assert.IsTrue(exceptionThrown);
        }
Пример #2
0
        public void Requesting_item_from_nonexistant_application_from_SSO_should_throw_an_exception()
        {
            var exceptionThrown = false;

            try
            {
                SSO.GetSSOInt32("NonExisting", "missingValue");
            }
            catch (Exception e)
            {
                exceptionThrown = true;
            }
            Assert.IsTrue(exceptionThrown);
        }
Пример #3
0
        public void We_should_be_able_to_get_an_integer_from_SSO()
        {
            var value = SSO.GetSSOInt32("IKTA.Common", "CommandTimeout");

            Assert.AreEqual(30, value);
        }