public void ClearRemovesExistingBuildLogDataTest()
        {
            var target = new DefaultBuildLog();

            target.CreatingValue(typeof(string), null);

            target.Output.Should().NotBeNullOrWhiteSpace();

            target.Clear();

            target.Output.Should().BeNullOrWhiteSpace();
        }
Exemplo n.º 2
0
        public void ClearRemovesExistingBuildLogData()
        {
            var generatorType = typeof(StateValueGenerator);
            var type          = typeof(string);

            var sut = new DefaultBuildLog {
                IsEnabled = true
            };

            sut.CreatingValue(type, generatorType, null !);

            sut.Output.Should().NotBeNullOrWhiteSpace();

            sut.Clear();

            sut.Output.Should().BeNullOrWhiteSpace();
        }