示例#1
0
        public void GetKnownStorageContextWithAuthenTest(string provider)
        {
            ConsoleAppBaseMocked mocked = new ConsoleAppBaseMocked(provider);

            AddAuthenArguments(mocked);

            var ctx = mocked.GetStorageContextWithAuthen(provider);

            Assert.AreNotEqual(null, ctx, "Returned context must not be null!!!");
        }
示例#2
0
        public void GetUnknownStorageContextWithAuthenTest(string provider)
        {
            ConsoleAppBaseMocked mocked = new ConsoleAppBaseMocked(provider);

            AddAuthenArguments(mocked);

            try
            {
                var ctx = mocked.GetStorageContextWithAuthen(provider);
                Assert.Fail("Exception should be thrown here!!!");
            }
            catch
            {
            }
        }