예제 #1
0
        public void ErrorWhen404()
        {
            using (WebApp.Start <Startup>(AlternateUrl))
            {
                var sut = new AppSettingsProvider();

                var toggle = new InvalidHttpJsonToggle();

                Assert.Throws <WebException>(() => sut.EvaluateBooleanToggleValue(toggle));
            }
        }
예제 #2
0
        public void ReadBooleanFalseFromHttpJsonEndpoint()
        {
            using (WebApp.Start <Startup>(Url))
            {
                var sut = new AppSettingsProvider();

                var toggle = new HttpJsonFalseToggle();

                Assert.False(sut.EvaluateBooleanToggleValue(toggle));
            }
        }