Exemple #1
0
        public void Parse_Subject_Without_Anything()
        {
            const string sampleSubject = "This is the subject";
            var          sut           = new EnhancedSubject(sampleSubject, new TopicParserConfiguration("[", "]"));

            Assert.That(sut.Subject, Is.EqualTo("This is the subject"));
        }
        public void Parse_Subject_Without_Anything()
        {
            const string sampleSubject = "This is the subject";
            var sut = new EnhancedSubject(sampleSubject, new TopicParserConfiguration("[", "]"));

            Assert.That(sut.Subject, Is.EqualTo("This is the subject"));
        }
Exemple #3
0
        public void Parse_Subject_With_Topic()
        {
            const string sampleSubject = "[TPC]This is the subject";
            var          sut           = new EnhancedSubject(sampleSubject, new TopicParserConfiguration("[", "]"));

            Assert.That(sut.Subject, Is.EqualTo("This is the subject"));
            Assert.That(sut.Topic.Title, Is.EqualTo("TPC"));
        }
        public void Parse_Subject_With_Topic()
        {
            const string sampleSubject = "[TPC]This is the subject";
            var sut = new EnhancedSubject(sampleSubject, new TopicParserConfiguration("[", "]"));

            Assert.That(sut.Subject, Is.EqualTo("This is the subject"));
            Assert.That(sut.Topic.Title, Is.EqualTo("TPC"));
        }