Exemplo n.º 1
0
        public void Feature_enabled_missing_file_returns_false()
        {
            var mockFeature = new Mock <IFeatureSettingValueProvider>();

            mockFeature.Setup(f => f.GetSetting(It.IsAny <IFeature>(), It.IsAny <IDefaultSettingStrategy>(), It.IsAny <string>())).Returns(new FeatureValue(@"missing/file/path/file.csv"));

            var sut = new AllowedPostcodeFeature();

            Assert.AreEqual(TextReader.Null, sut.PostcodeFile);
        }
Exemplo n.º 2
0
        public void Postcode_file_missing_file_path_returns_null_textreader()
        {
            var sut = new AllowedPostcodeFeature();

            Assert.AreEqual(TextReader.Null, sut.PostcodeFile);
        }
Exemplo n.º 3
0
        public void Is_enabled_returns_true_by_default()
        {
            var sut = new AllowedPostcodeFeature();

            Assert.IsTrue(sut.IsEnabled);
        }