コード例 #1
0
        public void Valid_DefaultParts_ReturnFalse()
        {
            var parts = new PartsOfSpeech();

            bool valid = parts.IsValid();

            Assert.That(valid, Is.False);
        }
コード例 #2
0
        public void Valid_NoAdverb_ReturnFalse()
        {
            var parts = new PartsOfSpeech()
            {
                Noun      = "dog",
                Verb      = "walk",
                Adjective = "blue"
            };

            bool valid = parts.IsValid();

            Assert.That(valid, Is.False);
        }
コード例 #3
0
        public void Valid_NoNoun_ReturnFalse()
        {
            var parts = new PartsOfSpeech()
            {
                Verb      = "walk",
                Adjective = "blue",
                Adverb    = "quickly"
            };

            bool valid = parts.IsValid();

            Assert.That(valid, Is.False);
        }
コード例 #4
0
        public void Valid_SettedFullParts_ReturnTrue()
        {
            var parts = new PartsOfSpeech()
            {
                Noun      = "dog",
                Verb      = "walk",
                Adjective = "blue",
                Adverb    = "quickly"
            };

            bool valid = parts.IsValid();

            Assert.That(valid, Is.True);
        }