Skip to content

Instantly share code, notes, and snippets.

@ericeijkelenboom
Created April 26, 2012 12:34
Show Gist options
  • Save ericeijkelenboom/2499278 to your computer and use it in GitHub Desktop.
Save ericeijkelenboom/2499278 to your computer and use it in GitHub Desktop.
Assert example
[TestMethod]
public void Property_DocumentAttributes_is_mapped()
{
// Arrange
var resultFromChild = new Attributes();
A.CallTo(() => _attributesToDocumentAttributesMapper.Map(A<AttributListeType>.Ignored))
.Returns(resultFromChild);
// Act
var document = _opretInputTypeToDocumentMapper.Map(new OpretInputType());
// Assert
Assert.AreEqual(resultFromChild, document.DocumentAttributes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment