コード例 #1
0
ファイル: ProgramTests.cs プロジェクト: Oscarwa/TDD
        public void Validate_OneOfEach_ReturnsEmptyString()
        {
            var expected = "";
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("Gzbl");

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
ファイル: ProgramTests.cs プロジェクト: Oscarwa/TDD
        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
ファイル: ProgramTests.cs プロジェクト: Oscarwa/TDD
        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
ファイル: ProgramTests.cs プロジェクト: Oscarwa/TDD
        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
ファイル: ProgramTests.cs プロジェクト: Oscarwa/TDD
        public void Validate()
        {
            var expected = string.Empty;
            var target   = new ProblemaGranjeroZorroBorregoLechuga.Program();
            var actual   = target.Validate("");

            Assert.AreEqual(expected, actual);
        }