Example #1
0
        public void TestGentleman()
        {
            //Arrange
            Gentleman billyMack      = new Gentleman();
            string    name           = "Billy Mack";
            string    elvartKoszones = "Hello Billy Mack";

            //Act
            string koszon = billyMack.SayHello(name);

            //Assert
            Assert.AreEqual(elvartKoszones, koszon);
        }
Example #2
0
        public void koszontesTesztelo2()

        {
            //Arrange
            Gentleman oli            = new Gentleman();
            string    elvartUdvozles = "Hello Anonymus";
            string    valodiUdvozles = null;


            //Act
            valodiUdvozles = oli.SayHello(null);

            //Assert
            Assert.AreEqual(elvartUdvozles, valodiUdvozles);
        }