mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed unit test warnings
This commit is contained in:
@@ -4,21 +4,22 @@ using Xunit.Abstractions;
|
||||
namespace Terminal.Gui.ViewTests;
|
||||
|
||||
/// <summary>
|
||||
/// Tests <see cref="View.Diagnostics"/> static property and <see cref="ViewDiagnosticFlags"/> enum.
|
||||
/// Tests <see cref="View.Diagnostics"/> static property and <see cref="ViewDiagnosticFlags"/> enum.
|
||||
/// </summary>
|
||||
/// <param name="output"></param>
|
||||
[Trait("Category","Output")]
|
||||
public class DiagnosticTests (ITestOutputHelper output)
|
||||
[Trait ("Category", "Output")]
|
||||
public class DiagnosticTests ()
|
||||
{
|
||||
/// <summary>
|
||||
/// /// Tests <see cref="View.Diagnostics"/> static property and <see cref="ViewDiagnosticFlags"/> enum.
|
||||
/// /// </summary>
|
||||
/// /// Tests <see cref="View.Diagnostics"/> static property and <see cref="ViewDiagnosticFlags"/> enum.
|
||||
/// ///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void Diagnostics_Sets ()
|
||||
{
|
||||
// View.Diagnostics is a static property that returns the current diagnostic flags.
|
||||
Assert.Equal (ViewDiagnosticFlags.Off, View.Diagnostics);
|
||||
|
||||
|
||||
// View.Diagnostics can be set to a new value.
|
||||
View.Diagnostics = ViewDiagnosticFlags.Padding;
|
||||
Assert.Equal (ViewDiagnosticFlags.Padding, View.Diagnostics);
|
||||
|
||||
Reference in New Issue
Block a user