コード例 #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"));
        }
コード例 #2
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"));
        }
コード例 #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"));
        }
コード例 #4
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"));
        }