public void MapMoneyWillReturnCorrectResult(Money money, ContractMapper sut)
 {
     // Fixture setup
     var expectedContract = money.AsSource().OfLikeness<MoneyContract>();
     // Exercise system
     MoneyContract result = sut.Map(money);
     // Verify outcome
     Assert.True(expectedContract.Equals(result));
     // Teardown
 }
示例#2
0
        public void MapMoneyWillReturnCorrectResult(Money money, ContractMapper sut)
        {
            // Fixture setup
            var expectedContract = money.AsSource().OfLikeness <MoneyContract>();
            // Exercise system
            MoneyContract result = sut.Map(money);

            // Verify outcome
            Assert.True(expectedContract.Equals(result));
            // Teardown
        }