示例#1
0
        public void Validate_OneOfEach_ReturnsEmptyString()
        {
            var expected = "";
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("Gzbl");

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Validate_BorregoYLechuga_ReturnsBorregoComeLechuga()
        {
            var expected = "Borrego come Lechuga";
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("bl");

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void Validate_GranjeroYCompanion_ReturnsEmptyString(string companion)
        {
            var expected = "";
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("G" + companion);

            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void Validate_ZorraYBorrego_ReturnsZorraComeBorrego()
        {
            var expected = "Zorra come Borrego";
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("zb");

            Assert.AreEqual(expected, actual);
        }
示例#5
0
        public void Validate()
        {
            var expected = string.Empty;
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("");

            Assert.AreEqual(expected, actual);
        }