コード例 #1
0
        public void ExtractData_ExpressionSuccessfully()
        {
            var reader = new ThemeReader();

            var component = reader.ExtractData(FileText);

            component.Expression.ShouldNotBeNull();
            component.Expression.ShouldBe(FileText);
        }
コード例 #2
0
        public void ExtractData_WhenTextIsEmpty_ExceptionRaised(string text)
        {
            var reader = new ThemeReader();

            Assert.Throws <ArgumentNullException>(() => reader.ExtractData(text));
        }