Created
April 26, 2012 12:34
-
-
Save ericeijkelenboom/2499278 to your computer and use it in GitHub Desktop.
Assert example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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