Skip to content

Commit f0209a3

Browse files
Merge pull request #4125 from Nirmal4G/hotfix/warnings
Fix most build warnings from the projects
2 parents 1888209 + 19c62a3 commit f0209a3

File tree

8 files changed

+38
-19
lines changed

8 files changed

+38
-19
lines changed

UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Windows.Apps.Test.Foundation;
6-
using Microsoft.Windows.Apps.Test.Foundation.Controls;
7-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
8-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
9-
using System.Linq;
10-
using System.Threading.Tasks;
5+
using System;
116
using System.Collections.Generic;
127
using System.Dynamic;
13-
using System;
8+
using System.Linq;
9+
using System.Threading.Tasks;
10+
11+
using Microsoft.Windows.Apps.Test.Foundation;
12+
using Microsoft.Windows.Apps.Test.Foundation.Controls;
1413

1514
#if USING_TAEF
1615
using WEX.Logging.Interop;
@@ -20,9 +19,11 @@
2019
using Microsoft.VisualStudio.TestTools.UnitTesting;
2120
#endif
2221

22+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
23+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
24+
2325
namespace UITests.Tests
2426
{
25-
2627
[TestClass]
2728
public class GridSplitterTest : UITestBase
2829
{

UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44

55
using Microsoft.Windows.Apps.Test.Foundation.Controls;
6-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
7-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
86

97
#if USING_TAEF
108
using WEX.Logging.Interop;
@@ -14,9 +12,11 @@
1412
using Microsoft.VisualStudio.TestTools.UnitTesting;
1513
#endif
1614

15+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
16+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
17+
1718
namespace UITests.Tests
1819
{
19-
2020
[TestClass]
2121
public class RangeSelectorTest : UITestBase
2222
{

UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using Microsoft.Windows.Apps.Test.Automation;
56
using Microsoft.Windows.Apps.Test.Foundation;
67
using Microsoft.Windows.Apps.Test.Foundation.Controls;
78
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
89
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
9-
using Microsoft.Windows.Apps.Test.Automation;
1010

1111
#if USING_TAEF
1212
using WEX.Logging.Interop;

UITests/UITests.Tests.Shared/UITestBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using System.IO;
77
using System.Linq;
88
using System.Reflection;
9-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
10-
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
119
using System.Threading.Tasks;
1210

1311
#if USING_TAEF
@@ -18,6 +16,9 @@
1816
using Microsoft.VisualStudio.TestTools.UnitTesting;
1917
#endif
2018

19+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common;
20+
using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra;
21+
2122
namespace UITests.Tests
2223
{
2324
public abstract class UITestBase

UnitTests/UnitTests.HighPerformance.UWP/UnitTests.HighPerformance.UWP.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
153153
<Version>5.0.0</Version>
154154
</PackageReference>
155+
<!-- For warnings ILT0010, ILT0005, ILT0003 -->
156+
<PackageReference Include="System.Xml.XPath.XmlDocument">
157+
<Version>4.0.1</Version>
158+
</PackageReference>
155159
</ItemGroup>
156160
<ItemGroup>
157161
<ProjectReference Include="..\..\Microsoft.Toolkit.HighPerformance\Microsoft.Toolkit.HighPerformance.csproj">

UnitTests/UnitTests.NetCore/Mvvm/Test_ObservablePropertyAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,15 @@ public enum Animal
361361
public partial class ModelWithValueProperty : ObservableObject
362362
{
363363
[ObservableProperty]
364-
private string value;
364+
private string? value;
365365
}
366366

367367
public partial class ModelWithValuePropertyWithValidation : ObservableValidator
368368
{
369369
[ObservableProperty]
370370
[Required]
371371
[MinLength(5)]
372-
private string value;
372+
private string? value;
373373
}
374374

375375
public partial class ViewModelWithValidatableGeneratedProperties : ObservableValidator

UnitTests/UnitTests.Notifications.UWP/UnitTestApp.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ namespace UnitTests.Notifications.UWP
1616
/// </summary>
1717
public sealed partial class App : Application
1818
{
19+
/// <summary>
20+
/// Initializes a new instance of the <see cref="App"/> class.
21+
/// </summary>
1922
public App()
2023
{
2124
InitializeComponent();
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
[*.{cs,vb}]
21

3-
# SA1601: Partial elements should be documented
2+
# Analyzer Configurations for Unit Test sources
3+
4+
# C# Source Files
5+
[*.cs]
6+
7+
# A C# partial element is missing a documentation header.
48
dotnet_diagnostic.SA1601.severity = none
9+
10+
# The Parameter has no matching param tag in the XML comment.
511
dotnet_diagnostic.CS1573.severity = none
12+
13+
# Missing XML comment for publicly visible type or member.
614
dotnet_diagnostic.CS1591.severity = none
7-
dotnet_diagnostic.CS1712.severity = none
15+
16+
# The Type parameter has no matching typeparam tag in the XML comment.
17+
dotnet_diagnostic.CS1712.severity = none

0 commit comments

Comments
 (0)