fix text warns and explicitly target windows-2025-vs2026 for runners

This commit is contained in:
2026-06-12 11:48:08 -05:00
parent 1f56cc7ce5
commit 0bbf198668
5 changed files with 19 additions and 17 deletions
@@ -11,7 +11,7 @@ public class SimpleViewModelsTests
{
private class TestViewModel : ViewModelBase
{
private string _testProperty;
private string _testProperty = string.Empty;
public string TestProperty
{
get => _testProperty;
@@ -28,7 +28,7 @@ public class SimpleViewModelsTests
public void ViewModelBase_SetProperty_ChangesValueAndRaisesEvent()
{
var vm = new TestViewModel();
string changedProperty = null;
string? changedProperty = null;
vm.PropertyChanged += (sender, args) => changedProperty = args.PropertyName;
// Change value
@@ -57,7 +57,7 @@ public class SimpleViewModelsTests
public void ViewModelBase_OnPropertyChanged_RaisesEvent()
{
var vm = new TestViewModel();
string changedProperty = null;
string? changedProperty = null;
vm.PropertyChanged += (sender, args) => changedProperty = args.PropertyName;
vm.TriggerPropertyChanged("CustomProperty");