コード例 #1
0
        public void When_creating_appender_without_name()
        {
            var appender = new HTTPAppender
            {
                Endpoint = "http://localhost:1234"
            };

            appender.Name.ShouldBeNull();
            appender.Endpoint.ShouldBe("http://localhost:1234");

            appender.ActivateOptions();

            appender.Name.ShouldNotBeNullOrWhiteSpace();
        }
コード例 #2
0
        public void When_activating_appender()
        {
            var appender = new HTTPAppender
            {
                Name     = "FooBar",
                Endpoint = "http://localhost:1234"
            };

            appender.Name.ShouldBe("FooBar");
            appender.Endpoint.ShouldBe("http://localhost:1234");

            appender.ActivateOptions();

            appender.Name.ShouldBe("FooBar");
        }