The Assert class extends the NUnit.Framework.Assert to make it aware of Nullable{T} values. When the value is null, it means the Act part of the test has not been run.
Inheritance: NUnit.Framework.Assert
 public void then_each_result_contains_at_least_a_property()
 {
     foreach (var result in this.Result)
     {
         Assert.IsTrue(result.Properties.Count > 0);
     }
 }
示例#2
0
 public void then_Sut_is_instance_of_IPrincipalContextFactory()
 {
     Assert.IsInstanceOf <IPrincipalContextFactory>(this.Sut);
 }
 public void then_Result_contains_20_results()
 {
     Assert.AreEqual(20, this.Result.Count);
 }
 public void then_Result_contains_at_least_a_result()
 {
     Assert.IsTrue(this.Result.Properties.Count > 0);
 }