public void Should_Return_The_Same_Configuration()
            {
                // Given
                var settings = new DotNetCoreMSBuildSettings();

                // When
                var result = settings.SetWarningCodeAsError("ERR1");

                // Then
                Assert.Equal(settings, result);
            }
            public void Should_Throw_Exception_If_Null_Or_Whitespace(string warningCode)
            {
                // Given
                var settings = new DotNetCoreMSBuildSettings();

                // When
                var result = Record.Exception(() => settings.SetWarningCodeAsError(warningCode));

                // Then
                AssertEx.IsArgumentException(result, "warningCode", "Warning code cannot be null or empty");
            }
            public void Should_Add_Warning_Code_To_Configuration()
            {
                // Given
                var settings = new DotNetCoreMSBuildSettings();

                // When
                settings.SetWarningCodeAsError("ERR1");

                // Then
                Assert.True(settings.WarningCodesAsError.Contains("ERR1"));
            }