Exemplo n.º 1
0
        public void Given_TwoCoinsFromSameIssuer_CoinsHaveDifferentIds()
        {
            Coin coin1 = CoinMother.CreateCoin();
            Coin coin2 = CoinMother.CreateCoin();

            Assert.AreNotEqual(coin1.Id.ToString(), coin2.Id.ToString());
        }
Exemplo n.º 2
0
        public void Given_Coin_CoinHasFullDescription1()
        {
            Coin coin = CoinMother.CreateCoin_3Hours_Painting();

            Assert.AreEqual(coin.Labor.EquivalentProduct.Description, "2 pounds of pasta");
        }
Exemplo n.º 3
0
        public void Given_Coin_CoinHasFullDescription()
        {
            Coin coin = CoinMother.CreateCoin_3Hours_Painting();

            Assert.AreEqual(coin.Description, "3 HOURS of PAINTING due to JANE SMITH from JOHN SMITH");
        }
Exemplo n.º 4
0
        public void Given_Coin_LaborAgreementHasStringRepresentation()
        {
            Coin coin = CoinMother.CreateCoin_3Hours_Painting();

            Assert.AreEqual(coin.Labor.ToString(), "3 HOURS of PAINTING");
        }
Exemplo n.º 5
0
        public void Given_Coin_LaborAgreementHasHours()
        {
            Coin coin = CoinMother.CreateCoin_3Hours_Painting();

            Assert.AreEqual(coin.Labor.Hours, 3);
        }
Exemplo n.º 6
0
        public void Given_Coin_LaborAgreementHasDescription()
        {
            Coin coin = CoinMother.CreateCoin_3Hours_Painting();

            Assert.AreEqual(coin.Labor.Description, "PAINTING");
        }
Exemplo n.º 7
0
        public void Given_Coin_IssuerHasName()
        {
            Coin coin = CoinMother.CreateCoin();

            Assert.That(coin.Issuer.Name, Is.EqualTo("JOHN SMITH"));
        }