Exemple #1
0
        public void GetShortCode_ShouldReturnTheRightShortCodeForPlatinum()
        {
            //Arrange

            const string metalName1 = "Platinum";

            Metal metal = new Metal(metalName1);

            //Act
            string shortcode = metal.GetShortCode();
            //Assert

            Assert.That(shortcode,Is.EqualTo("plt"));
        }
Exemple #2
0
        public void GetShortCode_ShouldReturnTheRightShortCodeForYellowGold()
        {
            //Arrange

            const string metalName2 = "Yellow Gold 18 Karat";

            Metal metal = new Metal(metalName2);

            //Act
            string shortcode = metal.GetShortCode();
            //Assert

            Assert.That(shortcode, Is.EqualTo("yg"));
        }