Beispiel #1
0
        public void write_simple_settings_with_a_null_value()
        {
            var settings = new SimpleSettings()
            {
                One = "one",
                Two = null
            };

            theWriter.WriteDirective(settings);
            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=");
        }
Beispiel #2
0
        public void write_simple_settings_with_values_for_everything()
        {
            var settings = new SimpleSettings()
            {
                One = "one",
                Two = "two"
            };

            theWriter.WriteDirective(settings);

            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=two");
        }
Beispiel #3
0
        public void write_simple_settings_with_values_for_everything_and_bottle_ref()
        {
            var settings = new SimpleSettings()
            {
                One = "one",
                Two = "two"
            };

            theWriter.WriteDirective(settings);
            theWriter.WriteReference(new BottleReference("bob"));

            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=two", "bottle:bob");
        }
Beispiel #4
0
        public void write_simple_settings_with_values_for_everything_and_bottle_ref()
        {
            var settings = new SimpleSettings()
            {
                One = "one",
                Two = "two"
            };

            theWriter.WriteDirective(settings);
            theWriter.WriteReference(new BottleReference("bob"));

            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=two", "bottle:bob");
        }
Beispiel #5
0
        public void write_simple_settings_with_values_for_everything()
        {
            var settings = new SimpleSettings(){
                One = "one",
                Two = "two"
            };

            theWriter.WriteDirective(settings);

            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=two");
        }
Beispiel #6
0
        public void write_simple_settings_with_a_null_value()
        {
            var settings = new SimpleSettings()
            {
                One = "one",
                Two = null
            };

            theWriter.WriteDirective(settings);
            theWriter.AllLines().ShouldHaveTheSameElementsAs("SimpleSettings.One=one", "SimpleSettings.Two=");
        }