Here are the examples of the csharp api NUnit.Framework.Has.Member(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : DateSearchTests.cs
with MIT License
from ju2pom
with MIT License
from ju2pom
[Test, Ignore("Too long to execute")]
public void CreationDate()
{
// Arrange
string filename = "FileCreatedToday.txt";
using (File.Create(filename)) {}
string expectedResult = Path.Combine(Directory.GetCurrentDirectory(), filename);
// Act
var results = this.everyThing.Search()
.CreationDate
.Equal(Dates.Today);
// replacedert
replacedert.That(this.everyThing.LastErrorCode, Is.EqualTo(ErrorCode.Ok));
replacedert.That(results, Has.Member(expectedResult));
}