Skip to content

Commit

Permalink
NUnit migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Dec 29, 2023
1 parent 3ee5681 commit 2898de4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/Catel.Fody.Tests.Shared/CSharp6Facts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void AutoPropertyInitializer()
var type = AssemblyWeaver.Instance.Assembly.GetType("Catel.Fody.TestAssembly.CSharp6_AutoPropertyInitializer");
var obj = (dynamic)Activator.CreateInstance(type);

Assert.IsNotNull(obj.SimpleModels);
Assert.That(obj.SimpleModels, Is.Not.Null);
}

[TestCase]
Expand All @@ -21,7 +21,7 @@ public void AutoPropertyInitializerWithMultipleConstructors()
var type = AssemblyWeaver.Instance.Assembly.GetType("Catel.Fody.TestAssembly.CSharp6_AutoPropertyInitializerWithMultipleConstructors");
var obj = (dynamic)Activator.CreateInstance(type);

Assert.IsTrue(obj.ShowErrors);
Assert.That(obj.ShowErrors, Is.True);
}

[TestCase]
Expand All @@ -30,9 +30,9 @@ public void AutoPropertyInitializer_Generic()
var type = AssemblyWeaver.Instance.Assembly.GetType("Catel.Fody.TestAssembly.CSharp6_AutoPropertyInitializer_Generic");
var obj = (dynamic)Activator.CreateInstance(type);

Assert.IsNotNull(obj.SimpleModels);
Assert.IsNull(obj.SelectedItem);
Assert.IsNull(obj.AdditionalProperty);
Assert.That(obj.SimpleModels, Is.Not.Null);
Assert.That(obj.SelectedItem, Is.Null);
Assert.That(obj.AdditionalProperty, Is.Null);
}
}
}
}
2 changes: 1 addition & 1 deletion src/Catel.Fody.Tests.Shared/ObservableObjectFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void DoesNotWeaveExistingProperties()

oo.ExistingProperty = "hi there";

Assert.AreEqual("hi there", oo.ExistingProperty);
Assert.That(oo.ExistingProperty, Is.EqualTo("hi there"));
}

[TestCase]
Expand Down

0 comments on commit 2898de4

Please sign in to comment.