Ejemplo n.º 1
0
        public void SutDoesNotEqualAnonymousObject()
        {
            var sut       = new SelfPaymentMortgageApplicationProcessor();
            var anonymous = new object();

            var actual = sut.Equals(anonymous);

            Assert.False(actual);
        }
Ejemplo n.º 2
0
        public void SutEqualsOther()
        {
            var sut   = new SelfPaymentMortgageApplicationProcessor();
            var other = new SelfPaymentMortgageApplicationProcessor();

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
Ejemplo n.º 3
0
        public void ProduceOfferReturnsCorrectResult(int selfPayment)
        {
            var sut         = new SelfPaymentMortgageApplicationProcessor();
            var application = new MortgageApplication
            {
                SelfPayment = selfPayment
            };

            var actual = sut.ProduceOffer(application);

            var expected = new IRendering[]
            {
                new BoldRendering("Self payment:"),
                new TextRendering(" " + application.SelfPayment),
                new LineBreakRendering()
            };

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 4
0
        public void SutIsMortgageApplicationProcessor()
        {
            var sut = new SelfPaymentMortgageApplicationProcessor();

            Assert.IsAssignableFrom <IMortgageApplicationProcessor>(sut);
        }