I'm replacing NUnit with TestManager in my Visual Studio project. NUnit has the following Asserts:
Assert.Contains(string, collection)
Assert.That(collection, Has.No.Member(string))
I'm using the following for TestManager:
CollectionAssert.Contains(collection, string)
CollectionAssert.DoesNotContain(collection, string)
I'm looking for a way to replace
Assert.IsEmpty(collection)
and Assert.IsNotEmpty(collection)
I could use CollectionAssert.DoesNotContain(collection, new List<string>())
But would rather have something more solid reflecting on collection.
Aucun commentaire:
Enregistrer un commentaire