Пример #1
0
        public void TestMethod2()
        {
            //Arrange
            var found = false; //This is our Expected Value - the Test is supposed to return a False as the Message will not contain Symbol of the input Kingdom

            var emblemFinder = new Set5Problem2_CSharp.EmblemFinder();

            var message = "zmzmzmzaztzozh";
            var kingdom = new Set5Problem2_CSharp.Kingdom("Air", "Owl");

            //Act
            var foundForKingdom = emblemFinder.ProcessMessageForKingdom(message, kingdom);

            //Assert
            Assert.AreEqual(found, foundForKingdom);
        }
Пример #2
0
        public void TestMethod1()
        {
            //Arrange
            var found = true; //This is our expected Value - The Test is expected to return a True as the input Message contains the Symbol of the input Kingdom

            var emblemFinder = new Set5Problem2_CSharp.EmblemFinder();

            //We can specify the message and required Kingdom here
            var message = "oaaawaala";
            var kingdom = new Set5Problem2_CSharp.Kingdom("Air", "Owl");

            //Act
            var foundForKingdom = emblemFinder.ProcessMessageForKingdom(message, kingdom);

            //Assert
            Assert.AreEqual(found, foundForKingdom);
        }