示例#1
0
        public void GrowlReturnsSpecificString()
        {
            Stomach organ = new Stomach();
            string  noise = organ.Growl();

            Assert.That(noise, Is.EqualTo("grrr"), "Expected Growl method to return 'grrr'");
        }
示例#2
0
        public void GrowlReturnsString()
        {
            Stomach organ = new Stomach();
            string  noise = organ.Growl();

            Assert.That(noise, Is.InstanceOf(typeof(string)), "Expected Growl method to return a string");
        }