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!!!"); }
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 { } }